Update merge conflicts workflow - Change the action being used - Add comment to notify PR author on merge conflicts

c722d251ffff55bf79cf1bf2d071a4297a732106

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +16 -8Showing whitespace changes
.github/workflows/check-merge-conflicts.yml+16 -8
@@ -1,17 +1,25 @@
11# Detect and label pull requests that have merge conflicts
2+
3+# Label Conflicting Pull Requests
4+# https://github.com/marketplace/actions/label-conflicting-pull-requests
5+
26name: 🏗️ Check Merge Conflicts
37on:
8+ # So that PRs touching the same files as the push are updated
49 push:
5- branches:
10+ # So that the `dirtyLabel` is removed if conflicts are resolve
6- - staging
11+ # We recommend `pull_request_target` so that github secrets are available.
12+ # In `pull_request` we wouldn't be able to change labels of fork PRs
13+ pull_request_target:
14+ types: [synchronize]
15+
716jobs:
817 check-conflicts:
9- if: github.repository == 'SillyTavern/SillyTavern'
1018 runs-on: ubuntu-latest
1119 steps:
12- - uses: mschilde/auto-label-merge-conflicts@master
20+ - name: Check Merge Conflicts
21+ uses: eps1lon/actions-label-merge-conflict@v3
1322 with:
14- CONFLICT_LABEL_NAME: "🚫 Merge Conflicts"
15- GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
16- MAX_RETRIES: 5
17- WAIT_MS: 5000
17 \ No newline at end of file
23+ dirtyLabel: "🚫 Merge Conflicts"
24+ repoToken: "${{ secrets.GITHUB_TOKEN }}"
25+ commentOnDirty: "This pull request has conflicts. Please resolve them, otherwise it cannot be merged."