Annotate fork-PRs with Trunk Check issues #2517
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@86b68ffae610a05105e90b1f52ad8c549ef482c2 # v1.1.16 | |
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 |