diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 34d5702ab1fce..49a677ff7f850 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -44,10 +44,11 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.number }} SHA: ${{ github.event.pull_request.head.sha }} + # Find the CI workflow run that is pending approval and approve it run: | set +e echo "Found 'ci-approved' label on PR #$PR_NUMBER." - RUN_ID=$(gh run list -L 1 -c $SHA -s action_required --json databaseId --jq '.[].databaseId') + RUN_ID=$(gh run list -L 1 -c $SHA -s action_required -w CI --json databaseId --jq '.[].databaseId') if [ -z "$RUN_ID" ]; then echo "No workflow run found for SHA $SHA"; exit 0;