mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Revert "Fix PR workflow by chaining actions"
This reverts commit aacbc5b6db
.
This commit is contained in:
18
.github/workflows/pr-auto-manager.yml
vendored
18
.github/workflows/pr-auto-manager.yml
vendored
@@ -39,13 +39,9 @@ jobs:
|
||||
|
||||
label-by-branches:
|
||||
name: 🏷️ Label PR by Branches
|
||||
needs: [label-by-size]
|
||||
runs-on: ubuntu-latest
|
||||
# Run, even if the previous jobs were skipped/failed
|
||||
# Only label once when PR is created or branches are changed, to allow manual label removal
|
||||
if: |
|
||||
always()
|
||||
&& github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
|
||||
if: github.event.action == 'opened' || (github.event.action == 'synchronize' && (github.event.changes.base || github.event.changes.head))
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -63,10 +59,7 @@ jobs:
|
||||
|
||||
label-by-files:
|
||||
name: 🏷️ Label PR by Files
|
||||
needs: [label-by-branches]
|
||||
runs-on: ubuntu-latest
|
||||
# Run, even if the previous jobs were skipped/failed
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -84,12 +77,9 @@ jobs:
|
||||
|
||||
remove-stale-label:
|
||||
name: 🗑️ Remove Stale Label on Comment
|
||||
needs: [label-by-files]
|
||||
runs-on: ubuntu-latest
|
||||
# Only runs when this is not done by the github actions bot
|
||||
if: |
|
||||
always()
|
||||
&& github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'
|
||||
if: github.event_name == 'pull_request_review_comment' && github.actor != 'github-actions[bot]'
|
||||
|
||||
steps:
|
||||
- name: Remove Stale Label
|
||||
@@ -104,7 +94,7 @@ jobs:
|
||||
|
||||
check-merge-blocking-labels:
|
||||
name: 🚫 Check Merge Blocking Labels
|
||||
needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]
|
||||
needs: [label-by-branches, label-by-files]
|
||||
runs-on: ubuntu-latest
|
||||
# Run, even if the previous jobs were skipped/failed
|
||||
if: always()
|
||||
@@ -154,7 +144,7 @@ jobs:
|
||||
|
||||
write-auto-comments:
|
||||
name: 💬 Post PR Comments Based on Labels
|
||||
needs: [label-by-size, label-by-branches, label-by-files, remove-stale-label]
|
||||
needs: [label-by-size, label-by-branches, label-by-files]
|
||||
runs-on: ubuntu-latest
|
||||
# Run, even if the previous jobs were skipped/failed
|
||||
if: always()
|
||||
|
Reference in New Issue
Block a user