Skip to content

Commit 52dfdc0

Browse files
committed
Use $GITHUB_REF_NAME to work with both branches and tags.
1 parent f80bc11 commit 52dfdc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
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)