Skip to content

Commit

Permalink
Set PR_NUMBER when PR is created
Browse files Browse the repository at this point in the history
  • Loading branch information
GlacierWalrus committed Feb 10, 2023
1 parent da45732 commit e40d8aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ if [[ -z "${PR_NUMBER}" ]]; then
PR_NUMBER=$(gh pr view --json number -q .number)
echo -e "\nRunning: ${COMMAND}"
URL=$(sh -c "${COMMAND}")
PR_NUMBER=$(gh pr view --json number -q .number ${URL})
# shellcheck disable=SC2181
if [[ "$?" != "0" ]]; then RET_CODE=1; fi
else
Expand Down

0 comments on commit e40d8aa

Please sign in to comment.