Add custom source sha (#126)

Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
Krasimir Nikolov
2021-07-14 23:57:17 +03:00
committed by GitHub
parent b4b0cdd1b5
commit 53afe7a5b5
4 changed files with 22 additions and 3 deletions

View File

@@ -8,10 +8,10 @@ git remote set-url origin "https://${INPUT_TOKEN}@github.com/${GITHUB_REPOSITORY
echo "Getting HEAD info..."
if [[ -z $GITHUB_SHA ]]; then
if [[ -z $INPUT_SHA ]]; then
CURR_SHA=$(git rev-parse HEAD 2>&1) && exit_status=$? || exit_status=$?
else
CURR_SHA=$GITHUB_SHA
CURR_SHA=$INPUT_SHA
fi
if [[ $exit_status -ne 0 ]]; then