summaryrefslogtreecommitdiff
path: root/.github/workflows/check-pr-conflicts.yml
blob: 2889842b641aea88b27713899ed5c2fcf356b32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

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'