fix: add pull_request_target trigger for bot PRs with duplicate run p… #22
Workflow file for this run
This file contains hidden or 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: pr | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| pull_request_target: | |
| branches: [main, develop] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| # Skip duplicate runs: run pull_request_target only for bot PRs, pull_request for others | |
| if: | | |
| github.event_name != 'pull_request_target' || | |
| github.actor == 'github-actions[bot]' || | |
| github.actor == 'renovate[bot]' | |
| uses: './.github/workflows/build.yml' | |
| with: | |
| dockerPublish: false |