Skip to content

Commit

Permalink
CI: Avoid race condition in labeler workflow (ArchipelagoMW#2910)
Browse files Browse the repository at this point in the history
  • Loading branch information
BadMagic100 authored and EmilyV99 committed Apr 15, 2024
1 parent 669cac3 commit bea10c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/label-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
sync-labels: true
peer_review:
name: 'Apply peer review label'
needs: labeler
if: >-
(github.event.action == 'opened' || github.event.action == 'reopened' ||
github.event.action == 'ready_for_review') && !github.event.pull_request.draft
Expand All @@ -30,6 +31,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
unblock_draft_prs:
name: 'Remove waiting-on labels'
needs: labeler
if: github.event.action == 'converted_to_draft' || github.event.action == 'closed'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit bea10c6

Please sign in to comment.