PR Comment #3920
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Post test results as pull request comment. | |
# | |
# This is done as a separate workflow as it requires write permissions. The | |
# tests itself might run off of a fork, i.e., an untrusted environment and should | |
# thus not be granted write permissions. | |
name: PR Comment | |
on: | |
workflow_run: | |
workflows: ["QNS", "CI", "Firefox"] | |
types: | |
- completed | |
permissions: | |
contents: read | |
jobs: | |
comment: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: | | |
github.event.workflow_run.event == 'pull_request' && | |
(github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/pr-comment | |
with: | |
name: ${{ github.event.workflow_run.name }} | |
token: ${{ secrets.GITHUB_TOKEN }} |