PRs Conflict checker #8257
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: "PRs Conflict checker" | |
| on: | |
| schedule: | |
| # Run every hour to check for PR conflicts | |
| - cron: '0 * * * *' | |
| pull_request_target: | |
| types: [synchronize, closed] | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| check-prs-conflict: | |
| if: | | |
| github.event_name == 'schedule' || | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request_target' && github.event.action == 'synchronize') || | |
| (github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true) | |
| uses: vyos/.github/.github/workflows/check-pr-merge-conflict.yml@production | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| secrets: inherit | |
| with: | |
| action-ref: 'production' |