fix: use GITHUB_HEAD_REF instead

This commit is contained in:
Jose Diaz-Gonzalez 2022-09-10 20:14:49 -04:00
parent a11d1ce303
commit 7154c020a1
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ if [ "$IS_REVIEW_APP" = "true" ]; then
git add mime.types
git commit -qm "feat: specify custom mime.types"
echo "-----> Setting the buildpack to the current ref $GITHUB_REF_NAME"
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_REF_NAME" > .buildpacks
echo "-----> Setting the buildpack to the current ref $GITHUB_HEAD_REF"
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_HEAD_REF" > .buildpacks
git add .buildpacks
git commit -qm "feat: specify $GITHUB_SHA as buildpack"