Skip to content

Commit 5c211f9

Browse files
authored
Merge pull request SvanBoxel#25 from rosiel/tags
Use `$GITHUB_REF_NAME` to work with both branches and tags.
2 parents f80bc11 + 52dfdc0 commit 5c211f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DEFAULT_POLL_TIMEOUT=10
2222
POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}
2323

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

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

0 commit comments

Comments
 (0)