We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c74bd commit 2c19dedCopy full SHA for 2c19ded
1 file changed
entrypoint.sh
@@ -38,7 +38,7 @@ echo
38
echo -e "\e[0;34mGet the list of commits included in the PR($GITHUB_REF).\e[0m"
39
PR=${GITHUB_REF#"refs/pull/"}
40
PRNUM=${PR%"/merge"}
41
-URL=https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${PRNUM}/commits
+URL=${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/pulls/${PRNUM}/commits
42
echo " - API endpoint: $URL"
43
44
list=$(curl $URL "${HEADERS[@]}" -X GET -s | jq '.[].sha' -r)
0 commit comments