Skip to content

Commit

Permalink
Update e2e-external-phase-2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim authored Dec 22, 2023
1 parent d9816f5 commit 6790981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-external-phase-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Extract the approved commit
id: extract
run: |
PR_NUMBER=$(gh api "repos/:owner/:repo/actions/runs/${RUN_ID}" --jq '.pull_requests | first | .number')
PR_NUMBER=$(gh api "repos/py-cov-action/python-coverage-comment-action/actions/runs/${RUN_ID}" --jq '.pull_requests | first | .number')
if [ -z "${PR_NUMBER}" ]; then
echo "No PR number found"
exit 1
fi
COMMIT_ID=$(gh pr view "${PR_NUMBER}" --json reviews --jq '[.reviews[] | select(.state == "APPROVED" and .authorAssociation == "MEMBER") | .commit.oid] | last')
COMMIT_ID=$(gh pr --repo py-cov-action/python-coverage-comment-action view "${PR_NUMBER}" --json reviews --jq '[.reviews[] | select(.state == "APPROVED" and .authorAssociation == "MEMBER") | .commit.oid] | last')
if [ -z "${COMMIT_ID}" ]; then
echo "No approved commit found"
exit 1
Expand Down

0 comments on commit 6790981

Please sign in to comment.