exporter/.github/workflows/api-surface-comment.yaml

28 lines
853 B
YAML

# https://github.com/marketplace/actions/api-surface-check-for-php
on:
# zizmor: ignore[dangerous-triggers] workflow_run is required to comment on
# PRs from forks; this workflow only runs a pinned action and does not check
# out PR-controlled code.
workflow_run:
workflows: ["API Surface Check"]
types: [completed]
name: "API Surface Comment"
permissions:
contents: read
concurrency:
group: api-surface-comment-${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}
cancel-in-progress: true
jobs:
check-api-surface:
name: Check API Surface
runs-on: ubuntu-latest
permissions:
pull-requests: write # required to post the API surface diff comment on the PR
steps:
- uses: composer/api-surface-check@c6308838120342a01682bb7f4f5ba058135e1452 # 1.0.0