Merge pull request #3694 from SillyTavern/workflow-hotfixes Workflow hotfixes
Signed| @@ -7,6 +7,10 @@ on: | |||
| 7 | issue_comment: | 7 | issue_comment: |
| 8 | types: [created] | 8 | types: [created] |
| 9 | 9 | ||
| 10 | permissions: | ||
| 11 | contents: read | ||
| 12 | issues: write | ||
| 13 | |||
| 10 | jobs: | 14 | jobs: |
| 11 | label-on-content: | 15 | label-on-content: |
| 12 | name: π·οΈ Label Issues by Content | 16 | name: π·οΈ Label Issues by Content |
| @@ -16,7 +20,7 @@ jobs: | |||
| 16 | - name: Checkout Repository | 20 | - name: Checkout Repository |
| 17 | # Checkout | 21 | # Checkout |
| 18 | # https://github.com/marketplace/actions/checkout | 22 | # https://github.com/marketplace/actions/checkout |
| 19 | uses: actions/checkout@v4 | 23 | uses: actions/checkout@v4.2.2 |
| 20 | 24 | ||
| 21 | - name: Auto-Label Issues (Based on Issue Content) | 25 | - name: Auto-Label Issues (Based on Issue Content) |
| 22 | # only auto label based on issue content once, on open (to prevent re-labeling removed labels) | 26 | # only auto label based on issue content once, on open (to prevent re-labeling removed labels) |
| @@ -24,7 +28,7 @@ jobs: | |||
| 24 | 28 | ||
| 25 | # Issue Labeler | 29 | # Issue Labeler |
| 26 | # https://github.com/marketplace/actions/regex-issue-labeler | 30 | # https://github.com/marketplace/actions/regex-issue-labeler |
| 27 | uses: github/issue-labeler@v3 | 31 | uses: github/issue-labeler@v3.4 |
| 28 | with: | 32 | with: |
| 29 | configuration-path: .github/issues-auto-labels.yml | 33 | configuration-path: .github/issues-auto-labels.yml |
| 30 | enable-versioned-regex: 0 | 34 | enable-versioned-regex: 0 |
| @@ -39,7 +43,7 @@ jobs: | |||
| 39 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) | 43 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) |
| 40 | # π€ Issues Helper | 44 | # π€ Issues Helper |
| 41 | # https://github.com/marketplace/actions/issues-helper | 45 | # https://github.com/marketplace/actions/issues-helper |
| 42 | uses: actions-cool/issues-helper@v3 | 46 | uses: actions-cool/issues-helper@v3.6.0 |
| 43 | with: | 47 | with: |
| 44 | actions: 'add-labels' | 48 | actions: 'add-labels' |
| 45 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 49 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -49,7 +53,7 @@ jobs: | |||
| 49 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) | 53 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) |
| 50 | # π€ Issues Helper | 54 | # π€ Issues Helper |
| 51 | # https://github.com/marketplace/actions/issues-helper | 55 | # https://github.com/marketplace/actions/issues-helper |
| 52 | uses: actions-cool/issues-helper@v3 | 56 | uses: actions-cool/issues-helper@v3.6.0 |
| 53 | with: | 57 | with: |
| 54 | actions: 'remove-labels' | 58 | actions: 'remove-labels' |
| 55 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 59 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -59,7 +63,7 @@ jobs: | |||
| 59 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) | 63 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) |
| 60 | # π€ Issues Helper | 64 | # π€ Issues Helper |
| 61 | # https://github.com/marketplace/actions/issues-helper | 65 | # https://github.com/marketplace/actions/issues-helper |
| 62 | uses: actions-cool/issues-helper@v3 | 66 | uses: actions-cool/issues-helper@v3.6.0 |
| 63 | with: | 67 | with: |
| 64 | actions: 'remove-labels' | 68 | actions: 'remove-labels' |
| 65 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 69 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -69,7 +73,7 @@ jobs: | |||
| 69 | if: github.event.label.name == 'πͺ² Confirmed' | 73 | if: github.event.label.name == 'πͺ² Confirmed' |
| 70 | # π€ Issues Helper | 74 | # π€ Issues Helper |
| 71 | # https://github.com/marketplace/actions/issues-helper | 75 | # https://github.com/marketplace/actions/issues-helper |
| 72 | uses: actions-cool/issues-helper@v3 | 76 | uses: actions-cool/issues-helper@v3.6.0 |
| 73 | with: | 77 | with: |
| 74 | actions: 'remove-labels' | 78 | actions: 'remove-labels' |
| 75 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 79 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -85,7 +89,7 @@ jobs: | |||
| 85 | - name: Remove Stale Label | 89 | - name: Remove Stale Label |
| 86 | # π€ Issues Helper | 90 | # π€ Issues Helper |
| 87 | # https://github.com/marketplace/actions/issues-helper | 91 | # https://github.com/marketplace/actions/issues-helper |
| 88 | uses: actions-cool/issues-helper@v3 | 92 | uses: actions-cool/issues-helper@v3.6.0 |
| 89 | with: | 93 | with: |
| 90 | actions: 'remove-labels' | 94 | actions: 'remove-labels' |
| 91 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 95 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -101,12 +105,12 @@ jobs: | |||
| 101 | - name: Checkout Repository | 105 | - name: Checkout Repository |
| 102 | # Checkout | 106 | # Checkout |
| 103 | # https://github.com/marketplace/actions/checkout | 107 | # https://github.com/marketplace/actions/checkout |
| 104 | uses: actions/checkout@v4 | 108 | uses: actions/checkout@v4.2.2 |
| 105 | 109 | ||
| 106 | - name: Post Issue Comments Based on Labels | 110 | - name: Post Issue Comments Based on Labels |
| 107 | # Label Commenter | 111 | # Label Commenter |
| 108 | # https://github.com/marketplace/actions/label-commenter | 112 | # https://github.com/marketplace/actions/label-commenter |
| 109 | uses: peaceiris/actions-label-commenter@v1 | 113 | uses: peaceiris/actions-label-commenter@v1.10.0 |
| 110 | with: | 114 | with: |
| 111 | config_file: .github/issues-auto-comments.yml | 115 | config_file: .github/issues-auto-comments.yml |
| 112 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 116 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -6,6 +6,10 @@ on: | |||
| 6 | - staging | 6 | - staging |
| 7 | - release | 7 | - release |
| 8 | 8 | ||
| 9 | permissions: | ||
| 10 | contents: read | ||
| 11 | issues: write | ||
| 12 | |||
| 9 | jobs: | 13 | jobs: |
| 10 | # This runs commits to staging/release, reading the commit messages. Check `pr-auto-manager.yml`:`update-linked-issues` for PR-linked updates. | 14 | # This runs commits to staging/release, reading the commit messages. Check `pr-auto-manager.yml`:`update-linked-issues` for PR-linked updates. |
| 11 | update-linked-issues: | 15 | update-linked-issues: |
| @@ -16,12 +20,12 @@ jobs: | |||
| 16 | - name: Checkout Repository | 20 | - name: Checkout Repository |
| 17 | # Checkout | 21 | # Checkout |
| 18 | # https://github.com/marketplace/actions/checkout | 22 | # https://github.com/marketplace/actions/checkout |
| 19 | uses: actions/checkout@v4 | 23 | uses: actions/checkout@v4.2.2 |
| 20 | 24 | ||
| 21 | - name: Extract Linked Issues from Commit Message | 25 | - name: Extract Linked Issues from Commit Message |
| 22 | id: extract_issues | 26 | id: extract_issues |
| 23 | run: | | 27 | run: | |
| 24 | ISSUES=$(git log -1 --pretty=%B | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]') | 28 | ISSUES=$(git log ${{ github.event.before }}..${{ github.event.after }} --pretty=%B | grep -oiE '(close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #([0-9]+)' | awk '{print $2}' | tr -d '#' | jq -R -s -c 'split("\n")[:-1]') |
| 25 | echo "issues=$ISSUES" >> $GITHUB_ENV | 29 | echo "issues=$ISSUES" >> $GITHUB_ENV |
| 26 | 30 | ||
| 27 | - name: Label Linked Issues | 31 | - name: Label Linked Issues |
| @@ -6,6 +6,11 @@ on: | |||
| 6 | schedule: | 6 | schedule: |
| 7 | - cron: '0 0 * * *' # Runs every day at midnight UTC | 7 | - cron: '0 0 * * *' # Runs every day at midnight UTC |
| 8 | 8 | ||
| 9 | permissions: | ||
| 10 | contents: read | ||
| 11 | issues: write | ||
| 12 | pull-requests: write | ||
| 13 | |||
| 9 | jobs: | 14 | jobs: |
| 10 | mark-inactivity: | 15 | mark-inactivity: |
| 11 | name: β³ Mark Issues/PRs without Activity | 16 | name: β³ Mark Issues/PRs without Activity |
| @@ -15,7 +20,7 @@ jobs: | |||
| 15 | - name: Mark Issues/PRs without Activity | 20 | - name: Mark Issues/PRs without Activity |
| 16 | # Close Stale Issues and PRs | 21 | # Close Stale Issues and PRs |
| 17 | # https://github.com/marketplace/actions/close-stale-issues | 22 | # https://github.com/marketplace/actions/close-stale-issues |
| 18 | uses: actions/stale@v9 | 23 | uses: actions/stale@v9.1.0 |
| 19 | with: | 24 | with: |
| 20 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 25 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 21 | days-before-stale: 183 | 26 | days-before-stale: 183 |
| @@ -49,7 +54,7 @@ jobs: | |||
| 49 | - name: Mark Issues/PRs Awaiting User Response | 54 | - name: Mark Issues/PRs Awaiting User Response |
| 50 | # Close Stale Issues and PRs | 55 | # Close Stale Issues and PRs |
| 51 | # https://github.com/marketplace/actions/close-stale-issues | 56 | # https://github.com/marketplace/actions/close-stale-issues |
| 52 | uses: actions/stale@v9 | 57 | uses: actions/stale@v9.1.0 |
| 53 | with: | 58 | with: |
| 54 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 59 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 55 | days-before-stale: 7 | 60 | days-before-stale: 7 |
| @@ -76,7 +81,7 @@ jobs: | |||
| 76 | - name: Mark Issues with Alternative Exists | 81 | - name: Mark Issues with Alternative Exists |
| 77 | # Close Stale Issues and PRs | 82 | # Close Stale Issues and PRs |
| 78 | # https://github.com/marketplace/actions/close-stale-issues | 83 | # https://github.com/marketplace/actions/close-stale-issues |
| 79 | uses: actions/stale@v9 | 84 | uses: actions/stale@v9.1.0 |
| 80 | with: | 85 | with: |
| 81 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 86 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 82 | days-before-stale: 7 | 87 | days-before-stale: 7 |
| @@ -6,6 +6,11 @@ on: | |||
| 6 | pull_request_target: | 6 | pull_request_target: |
| 7 | types: [closed] | 7 | types: [closed] |
| 8 | 8 | ||
| 9 | permissions: | ||
| 10 | contents: read | ||
| 11 | issues: write | ||
| 12 | pull-requests: write | ||
| 13 | |||
| 9 | jobs: | 14 | jobs: |
| 10 | remove-labels: | 15 | remove-labels: |
| 11 | name: ποΈ Remove Pending Labels on Close | 16 | name: ποΈ Remove Pending Labels on Close |
| @@ -15,7 +20,7 @@ jobs: | |||
| 15 | - name: Remove Pending Labels on Close | 20 | - name: Remove Pending Labels on Close |
| 16 | # π€ Issues Helper | 21 | # π€ Issues Helper |
| 17 | # https://github.com/marketplace/actions/issues-helper | 22 | # https://github.com/marketplace/actions/issues-helper |
| 18 | uses: actions-cool/issues-helper@v3 | 23 | uses: actions-cool/issues-helper@v3.6.0 |
| 19 | with: | 24 | with: |
| 20 | actions: remove-labels | 25 | actions: remove-labels |
| 21 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 26 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -6,6 +6,11 @@ on: | |||
| 6 | pull_request_target: | 6 | pull_request_target: |
| 7 | types: [opened] | 7 | types: [opened] |
| 8 | 8 | ||
| 9 | permissions: | ||
| 10 | contents: read | ||
| 11 | issues: write | ||
| 12 | pull-requests: write | ||
| 13 | |||
| 9 | jobs: | 14 | jobs: |
| 10 | label-maintainer: | 15 | label-maintainer: |
| 11 | name: π·οΈ Label if Author is a Repo Maintainer | 16 | name: π·οΈ Label if Author is a Repo Maintainer |
| @@ -16,7 +21,7 @@ jobs: | |||
| 16 | - name: Label if Author is a Repo Maintainer | 21 | - name: Label if Author is a Repo Maintainer |
| 17 | # π€ Issues Helper | 22 | # π€ Issues Helper |
| 18 | # https://github.com/marketplace/actions/issues-helper | 23 | # https://github.com/marketplace/actions/issues-helper |
| 19 | uses: actions-cool/issues-helper@v3 | 24 | uses: actions-cool/issues-helper@v3.6.0 |
| 20 | with: | 25 | with: |
| 21 | actions: 'add-labels' | 26 | actions: 'add-labels' |
| 22 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 27 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -6,6 +6,10 @@ on: | |||
| 6 | pull_request_review_comment: | 6 | pull_request_review_comment: |
| 7 | types: [created] | 7 | types: [created] |
| 8 | 8 | ||
| 9 | permissions: | ||
| 10 | contents: read | ||
| 11 | pull-requests: write | ||
| 12 | |||
| 9 | jobs: | 13 | jobs: |
| 10 | label-by-size: | 14 | label-by-size: |
| 11 | name: π·οΈ Label PR by Size | 15 | name: π·οΈ Label PR by Size |
| @@ -15,7 +19,7 @@ jobs: | |||
| 15 | - name: Label PR Size | 19 | - name: Label PR Size |
| 16 | # Pull Request Size Labeler | 20 | # Pull Request Size Labeler |
| 17 | # https://github.com/marketplace/actions/pull-request-size-labeler | 21 | # https://github.com/marketplace/actions/pull-request-size-labeler |
| 18 | uses: codelytv/pr-size-labeler@v1 | 22 | uses: codelytv/pr-size-labeler@v1.10.2 |
| 19 | with: | 23 | with: |
| 20 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 24 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 21 | xs_label: 'π© ⬀ββββ' | 25 | xs_label: 'π© ⬀ββββ' |
| @@ -43,12 +47,12 @@ jobs: | |||
| 43 | - name: Checkout Repository | 47 | - name: Checkout Repository |
| 44 | # Checkout | 48 | # Checkout |
| 45 | # https://github.com/marketplace/actions/checkout | 49 | # https://github.com/marketplace/actions/checkout |
| 46 | uses: actions/checkout@v4 | 50 | uses: actions/checkout@v4.2.2 |
| 47 | 51 | ||
| 48 | - name: Apply Labels Based on Branch Name and Target Branch | 52 | - name: Apply Labels Based on Branch Name and Target Branch |
| 49 | # Pull Request Labeler | 53 | # Pull Request Labeler |
| 50 | # https://github.com/marketplace/actions/labeler | 54 | # https://github.com/marketplace/actions/labeler |
| 51 | uses: actions/labeler@v5 | 55 | uses: actions/labeler@v5.0.0 |
| 52 | with: | 56 | with: |
| 53 | configuration-path: .github/pr-auto-labels-by-branch.yml | 57 | configuration-path: .github/pr-auto-labels-by-branch.yml |
| 54 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 58 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -61,12 +65,12 @@ jobs: | |||
| 61 | - name: Checkout Repository | 65 | - name: Checkout Repository |
| 62 | # Checkout | 66 | # Checkout |
| 63 | # https://github.com/marketplace/actions/checkout | 67 | # https://github.com/marketplace/actions/checkout |
| 64 | uses: actions/checkout@v4 | 68 | uses: actions/checkout@v4.2.2 |
| 65 | 69 | ||
| 66 | - name: Apply Labels Based on Changed Files | 70 | - name: Apply Labels Based on Changed Files |
| 67 | # Pull Request Labeler | 71 | # Pull Request Labeler |
| 68 | # https://github.com/marketplace/actions/labeler | 72 | # https://github.com/marketplace/actions/labeler |
| 69 | uses: actions/labeler@v5 | 73 | uses: actions/labeler@v5.0.0 |
| 70 | with: | 74 | with: |
| 71 | configuration-path: .github/pr-auto-labels-by-files.yml | 75 | configuration-path: .github/pr-auto-labels-by-files.yml |
| 72 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 76 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -75,13 +79,13 @@ jobs: | |||
| 75 | name: ποΈ Remove Stale Label on Comment | 79 | name: ποΈ Remove Stale Label on Comment |
| 76 | runs-on: ubuntu-latest | 80 | runs-on: ubuntu-latest |
| 77 | # Only runs when this is not done by the github actions bot | 81 | # Only runs when this is not done by the github actions bot |
| 78 | if: github.actor != 'github-actions[bot]' | 82 | if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]' |
| 79 | 83 | ||
| 80 | steps: | 84 | steps: |
| 81 | - name: Remove Stale Label | 85 | - name: Remove Stale Label |
| 82 | # π€ Issues Helper | 86 | # π€ Issues Helper |
| 83 | # https://github.com/marketplace/actions/issues-helper | 87 | # https://github.com/marketplace/actions/issues-helper |
| 84 | uses: actions-cool/issues-helper@v3 | 88 | uses: actions-cool/issues-helper@v3.6.0 |
| 85 | with: | 89 | with: |
| 86 | actions: 'remove-labels' | 90 | actions: 'remove-labels' |
| 87 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 91 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -95,12 +99,18 @@ jobs: | |||
| 95 | # Run, even if the previous jobs were skipped/failed | 99 | # Run, even if the previous jobs were skipped/failed |
| 96 | if: always() | 100 | if: always() |
| 97 | 101 | ||
| 102 | # Override permissions, as this needs to write a check | ||
| 103 | permissions: | ||
| 104 | checks: write | ||
| 105 | contents: read | ||
| 106 | pull-requests: read | ||
| 107 | |||
| 98 | steps: | 108 | steps: |
| 99 | - name: Check Merge Blocking | 109 | - name: Check Merge Blocking |
| 100 | # GitHub Script | 110 | # GitHub Script |
| 101 | # https://github.com/marketplace/actions/github-scriptLabels | 111 | # https://github.com/marketplace/actions/github-script |
| 102 | id: label-check | 112 | id: label-check |
| 103 | uses: actions/github-script@v7 | 113 | uses: actions/github-script@v7.0.1 |
| 104 | with: | 114 | with: |
| 105 | script: | | 115 | script: | |
| 106 | const prLabels = context.payload.pull_request.labels.map(label => label.name); | 116 | const prLabels = context.payload.pull_request.labels.map(label => label.name); |
| @@ -143,12 +153,12 @@ jobs: | |||
| 143 | - name: Checkout Repository | 153 | - name: Checkout Repository |
| 144 | # Checkout | 154 | # Checkout |
| 145 | # https://github.com/marketplace/actions/checkout | 155 | # https://github.com/marketplace/actions/checkout |
| 146 | uses: actions/checkout@v4 | 156 | uses: actions/checkout@v4.2.2 |
| 147 | 157 | ||
| 148 | - name: Post PR Comments Based on Labels | 158 | - name: Post PR Comments Based on Labels |
| 149 | # Label Commenter for PRs | 159 | # Label Commenter for PRs |
| 150 | # https://github.com/marketplace/actions/label-commenter | 160 | # https://github.com/marketplace/actions/label-commenter |
| 151 | uses: peaceiris/actions-label-commenter@v1 | 161 | uses: peaceiris/actions-label-commenter@v1.10.0 |
| 152 | with: | 162 | with: |
| 153 | config_file: .github/pr-auto-comments.yml | 163 | config_file: .github/pr-auto-comments.yml |
| 154 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 164 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -7,6 +7,10 @@ on: | |||
| 7 | pull_request_target: | 7 | pull_request_target: |
| 8 | types: [synchronize] | 8 | types: [synchronize] |
| 9 | 9 | ||
| 10 | permissions: | ||
| 11 | contents: read | ||
| 12 | pull-requests: write | ||
| 13 | |||
| 10 | jobs: | 14 | jobs: |
| 11 | check-merge-conflicts: | 15 | check-merge-conflicts: |
| 12 | name: βοΈ Check Merge Conflicts | 16 | name: βοΈ Check Merge Conflicts |
| @@ -16,7 +20,7 @@ jobs: | |||
| 16 | - name: Check Merge Conflicts | 20 | - name: Check Merge Conflicts |
| 17 | # Label Conflicting Pull Requests | 21 | # Label Conflicting Pull Requests |
| 18 | # https://github.com/marketplace/actions/label-conflicting-pull-requests | 22 | # https://github.com/marketplace/actions/label-conflicting-pull-requests |
| 19 | uses: eps1lon/actions-label-merge-conflict@v3 | 23 | uses: eps1lon/actions-label-merge-conflict@v3.0.3 |
| 20 | with: | 24 | with: |
| 21 | dirtyLabel: 'π« Merge Conflicts' | 25 | dirtyLabel: 'π« Merge Conflicts' |
| 22 | repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 26 | repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |