Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
Update mark_ready_when_ready.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyonj authored Jan 23, 2024
1 parent f5ee08a commit b914712
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/mark_ready_when_ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,19 @@ jobs:
wait_for_workflows:
name: Mark as ready after successful workflow suite
runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ github.token }}
if: |
contains(github.event.pull_request.labels.*.name, 'Mark Ready When Ready') &&
github.event.pull_request.draft == true
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Wait for checks to be added
run: sleep 20

- name: Wait for workflows
env:
GH_TOKEN: ${{ github.token }}
run: gh pr checks ${{ github.event.pull_request.number }} --watch

- name: Mark as ready
env:
GH_TOKEN: ${{ github.token }}
if: |
contains(github.event.pull_request.labels.*.name, 'Mark Ready When Ready') &&
github.event.pull_request.draft == true &&
Expand Down

0 comments on commit b914712

Please sign in to comment.