Skip to content

Commit 2c19ded

Browse files
committed
Use variable to point to API
Useful for using this code on ForgeJo Actions. Signed-off-by: David Heidelberg <david@ixit.cz>
1 parent 76c74bd commit 2c19ded

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ echo
3838
echo -e "\e[0;34mGet the list of commits included in the PR($GITHUB_REF).\e[0m"
3939
PR=${GITHUB_REF#"refs/pull/"}
4040
PRNUM=${PR%"/merge"}
41-
URL=https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${PRNUM}/commits
41+
URL=${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/pulls/${PRNUM}/commits
4242
echo " - API endpoint: $URL"
4343

4444
list=$(curl $URL "${HEADERS[@]}" -X GET -s | jq '.[].sha' -r)

0 commit comments

Comments
 (0)