Merge pull request #3702 from SillyTavern/hotfix-pr-workflow-v2 Hotfix pr workflow v2

df48428d1d50910cafb209d6a67b012cd57ad8d6

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +5 -15Showing whitespace changes
.github/workflows/pr-auto-manager.yml+5 -15
@@ -19,7 +19,7 @@ jobs:
19 - name: Label PR Size19 - name: Label PR Size
20 # Pull Request Size Labeler20 # Pull Request Size Labeler
21 # https://github.com/marketplace/actions/pull-request-size-labeler21 # https://github.com/marketplace/actions/pull-request-size-labeler
22 uses: codelytv/pr-size-labeler@v1.10.222 uses: codelytv/pr-size-labeler@v1.10.1
23 with:23 with:
24 GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}24 GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
25 xs_label: '🟩 ⬀○○○○'25 xs_label: '🟩 ⬀○○○○'
@@ -39,13 +39,9 @@ jobs:
3939
40 label-by-branches:40 label-by-branches:
41 name: 🏷️ Label PR by Branches41 name: 🏷️ Label PR by Branches
42 needs: [label-by-size]
43 runs-on: ubuntu-latest42 runs-on: ubuntu-latest
44 # Run, even if the previous jobs were skipped/failed
45 # Only label once when PR is created or branches are changed, to allow manual label removal43 # Only label once when PR is created or branches are changed, to allow manual label removal
46 if: |44 if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
47 always()
48 && github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
4945
50 steps:46 steps:
51 - name: Checkout Repository47 - name: Checkout Repository
@@ -63,10 +59,7 @@ jobs:
6359
64 label-by-files:60 label-by-files:
65 name: 🏷️ Label PR by Files61 name: 🏷️ Label PR by Files
66 needs: [label-by-branches]
67 runs-on: ubuntu-latest62 runs-on: ubuntu-latest
68 # Run, even if the previous jobs were skipped/failed
69 if: always()
7063
71 steps:64 steps:
72 - name: Checkout Repository65 - name: Checkout Repository
@@ -84,12 +77,9 @@ jobs:
8477
85 remove-stale-label:78 remove-stale-label:
86 name: πŸ—‘οΈ Remove Stale Label on Comment79 name: πŸ—‘οΈ Remove Stale Label on Comment
87 needs: [label-by-files]
88 runs-on: ubuntu-latest80 runs-on: ubuntu-latest
89 # Only runs when this is not done by the github actions bot81 # Only runs when this is not done by the github actions bot
90 if: |82 if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'
91 always()
92 && github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'
9383
94 steps:84 steps:
95 - name: Remove Stale Label85 - name: Remove Stale Label
@@ -104,7 +94,7 @@ jobs:
10494
105 check-merge-blocking-labels:95 check-merge-blocking-labels:
106 name: 🚫 Check Merge Blocking Labels96 name: 🚫 Check Merge Blocking Labels
107 needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]97 needs: [label-by-branches, label-by-files]
108 runs-on: ubuntu-latest98 runs-on: ubuntu-latest
109 # Run, even if the previous jobs were skipped/failed99 # Run, even if the previous jobs were skipped/failed
110 if: always()100 if: always()
@@ -154,7 +144,7 @@ jobs:
154144
155 write-auto-comments:145 write-auto-comments:
156 name: πŸ’¬ Post PR Comments Based on Labels146 name: πŸ’¬ Post PR Comments Based on Labels
157 needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]147 needs: [label-by-size, label-by-branches, label-by-files]
158 runs-on: ubuntu-latest148 runs-on: ubuntu-latest
159 # Run, even if the previous jobs were skipped/failed149 # Run, even if the previous jobs were skipped/failed
160 if: always()150 if: always()