Skip to content

Commit

Permalink
GH Branch SHA GHA: Store commit SHA to _sha variable (#6418)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrhoffman authored Dec 10, 2021
1 parent f46653b commit 431aa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/fetch-github-branch-sha/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if ! _brinfo="$(curl --silent "${GITHUB_API_URL}/repos/${INPUT_OWNER}/${INPUT_RE
fi

# parse out the commit sha
_sha="$(<<<"$_brinfo" jq -r .name)"
_sha="$(<<<"$_brinfo" jq -r .commit.sha)"

# verify the sha
if [[ -z "${_sha}" || "${_sha}" == "null" ]]; then
Expand Down

0 comments on commit 431aa13

Please sign in to comment.