Annotate fork-PRs with Trunk Check issues #2688
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
name: Annotate fork-PRs with Trunk Check issues | |
on: | |
workflow_run: | |
workflows: [Pull Request] | |
types: [completed] | |
permissions: read-all | |
jobs: | |
trunk_check: | |
name: Trunk Check Annotate | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Trunk Check | |
uses: trunk-io/trunk-action@4d5ecc89b2691705fd08c747c78652d2fc806a94 # v1.1.19 | |
with: | |
post-annotations: true | |
# This job may fail when the PR was not run on a fork, and that's okay | |
continue-on-error: true |