Annotate fork-PRs with Trunk Check issues #2433
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@da67635060feab46c164bc130690e61864a5d13b # v1.1.13 | |
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 |