Skip to content

Commit

Permalink
Merge pull request SvanBoxel#25 from rosiel/tags
Browse files Browse the repository at this point in the history
Use `$GITHUB_REF_NAME` to work with both branches and tags.
  • Loading branch information
SvanBoxel authored Oct 26, 2023
2 parents f80bc11 + 52dfdc0 commit 5c211f9
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 5c211f9

Please sign in to comment.