Skip to content

Commit

Permalink
Use $GITHUB_REF_NAME to work with both branches and tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Oct 25, 2023
1 parent f80bc11 commit 52dfdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DEFAULT_POLL_TIMEOUT=10
POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}

sh -c "git config --global --add safe.directory /github/workspace"
git checkout "${GITHUB_REF:11}"
git checkout "$GITHUB_REF_NAME"

branch="$(git symbolic-ref --short HEAD)"
branch_uri="$(urlencode ${branch})"
Expand Down

0 comments on commit 52dfdc0

Please sign in to comment.