Skip to content

Commit 6864994

Browse files
authored
remove leading slash when comparing to ${GITHUB_REF} (#5181)
1 parent 453f6fb commit 6864994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Get tag
2424
id: tag
2525
run: |
26-
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
26+
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
2727
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
2828
else
2929
echo ::set-output name=tag::${GITHUB_SHA::7}
@@ -50,7 +50,7 @@ jobs:
5050
- name: Get tag
5151
id: tag
5252
run: |
53-
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
53+
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
5454
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
5555
else
5656
echo ::set-output name=tag::${GITHUB_SHA::7}
@@ -107,7 +107,7 @@ jobs:
107107
id: tag
108108
shell: bash
109109
run: |
110-
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
110+
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
111111
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
112112
else
113113
echo ::set-output name=tag::${GITHUB_SHA::7}

0 commit comments

Comments
 (0)