Merge pull request #3699 from SillyTavern/hotfix-pr-workflow Fix PR workflow by chaining actions

ecfad12b59927c642e1465edf5839e0dcfa2f226

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

Signed
1 files changed, +14 -4Showing whitespace changes
.github/workflows/pr-auto-manager.yml+14 -4
@@ -39,9 +39,13 @@ 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]
42 runs-on: ubuntu-latest43 runs-on: ubuntu-latest
44 # Run, even if the previous jobs were skipped/failed
43 # Only label once when PR is created or branches are changed, to allow manual label removal45 # Only label once when PR is created or branches are changed, to allow manual label removal
44 if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))46 if: |
47 always()
48 && github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
4549
46 steps:50 steps:
47 - name: Checkout Repository51 - name: Checkout Repository
@@ -59,7 +63,10 @@ jobs:
5963
60 label-by-files:64 label-by-files:
61 name: 🏷️ Label PR by Files65 name: 🏷️ Label PR by Files
66 needs: [label-by-branches]
62 runs-on: ubuntu-latest67 runs-on: ubuntu-latest
68 # Run, even if the previous jobs were skipped/failed
69 if: always()
6370
64 steps:71 steps:
65 - name: Checkout Repository72 - name: Checkout Repository
@@ -77,9 +84,12 @@ jobs:
7784
78 remove-stale-label:85 remove-stale-label:
79 name: 🗑️ Remove Stale Label on Comment86 name: 🗑️ Remove Stale Label on Comment
87 needs: [label-by-files]
80 runs-on: ubuntu-latest88 runs-on: ubuntu-latest
81 # Only runs when this is not done by the github actions bot89 # Only runs when this is not done by the github actions bot
82 if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'90 if: |
91 always()
92 && github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'
8393
84 steps:94 steps:
85 - name: Remove Stale Label95 - name: Remove Stale Label
@@ -94,7 +104,7 @@ jobs:
94104
95 check-merge-blocking-labels:105 check-merge-blocking-labels:
96 name: 🚫 Check Merge Blocking Labels106 name: 🚫 Check Merge Blocking Labels
97 needs: [label-by-branches, label-by-files]107 needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]
98 runs-on: ubuntu-latest108 runs-on: ubuntu-latest
99 # Run, even if the previous jobs were skipped/failed109 # Run, even if the previous jobs were skipped/failed
100 if: always()110 if: always()
@@ -144,7 +154,7 @@ jobs:
144154
145 write-auto-comments:155 write-auto-comments:
146 name: 💬 Post PR Comments Based on Labels156 name: 💬 Post PR Comments Based on Labels
147 needs: [label-by-size, label-by-branches, label-by-files]157 needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]
148 runs-on: ubuntu-latest158 runs-on: ubuntu-latest
149 # Run, even if the previous jobs were skipped/failed159 # Run, even if the previous jobs were skipped/failed
150 if: always()160 if: always()