Revert "Fix PR workflow by chaining actions" This reverts commit aacbc5b6db0252847e20040ee828354002e2bda0.
| @@ -39,13 +39,9 @@ jobs: | ||
| 39 | 39 | |
| 40 | 40 | label-by-branches: |
| 41 | 41 | name: 🏷️ Label PR by Branches |
| 42 | - needs: [label-by-size] | |
| 43 | 42 | runs-on: ubuntu-latest |
| 44 | - # Run, even if the previous jobs were skipped/failed | |
| 45 | 43 | # 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)) | |
| 49 | 45 | |
| 50 | 46 | steps: |
| 51 | 47 | - name: Checkout Repository |
| @@ -63,10 +59,7 @@ jobs: | ||
| 63 | 59 | |
| 64 | 60 | label-by-files: |
| 65 | 61 | name: 🏷️ Label PR by Files |
| 66 | - needs: [label-by-branches] | |
| 67 | 62 | runs-on: ubuntu-latest |
| 68 | - # Run, even if the previous jobs were skipped/failed | |
| 69 | - if: always() | |
| 70 | 63 | |
| 71 | 64 | steps: |
| 72 | 65 | - name: Checkout Repository |
| @@ -84,12 +77,9 @@ jobs: | ||
| 84 | 77 | |
| 85 | 78 | remove-stale-label: |
| 86 | 79 | name: 🗑️ Remove Stale Label on Comment |
| 87 | - needs: [label-by-files] | |
| 88 | 80 | runs-on: ubuntu-latest |
| 89 | 81 | # 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]' | |
| 93 | 83 | |
| 94 | 84 | steps: |
| 95 | 85 | - name: Remove Stale Label |
| @@ -104,7 +94,7 @@ jobs: | ||
| 104 | 94 | |
| 105 | 95 | check-merge-blocking-labels: |
| 106 | 96 | name: 🚫 Check Merge Blocking Labels |
| 107 | 97 | needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label] |
| 108 | 98 | runs-on: ubuntu-latest |
| 109 | 99 | # Run, even if the previous jobs were skipped/failed |
| 110 | 100 | if: always() |
| @@ -154,7 +144,7 @@ jobs: | ||
| 154 | 144 | |
| 155 | 145 | write-auto-comments: |
| 156 | 146 | name: 💬 Post PR Comments Based on Labels |
| 157 | 147 | needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label] |
| 158 | 148 | runs-on: ubuntu-latest |
| 159 | 149 | # Run, even if the previous jobs were skipped/failed |
| 160 | 150 | if: always() |