Revert "Fix PR workflow by chaining actions" This reverts commit aacbc5b6db0252847e20040ee828354002e2bda0.

d887eb2258ade5558cab51ea8001b85716510bf8

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +4 -14Ignore whitespace
.github/workflows/pr-auto-manager.yml+4 -14
@@ -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()