mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
CI: Avoid race condition in labeler workflow (#2910)
This commit is contained in:
2
.github/workflows/label-pull-requests.yml
vendored
2
.github/workflows/label-pull-requests.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
sync-labels: true
|
sync-labels: true
|
||||||
peer_review:
|
peer_review:
|
||||||
name: 'Apply peer review label'
|
name: 'Apply peer review label'
|
||||||
|
needs: labeler
|
||||||
if: >-
|
if: >-
|
||||||
(github.event.action == 'opened' || github.event.action == 'reopened' ||
|
(github.event.action == 'opened' || github.event.action == 'reopened' ||
|
||||||
github.event.action == 'ready_for_review') && !github.event.pull_request.draft
|
github.event.action == 'ready_for_review') && !github.event.pull_request.draft
|
||||||
@@ -30,6 +31,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
unblock_draft_prs:
|
unblock_draft_prs:
|
||||||
name: 'Remove waiting-on labels'
|
name: 'Remove waiting-on labels'
|
||||||
|
needs: labeler
|
||||||
if: github.event.action == 'converted_to_draft' || github.event.action == 'closed'
|
if: github.event.action == 'converted_to_draft' || github.event.action == 'closed'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Reference in New Issue
Block a user