Skip to content

Commit

Permalink
remove leading slash when comparing to ${GITHUB_REF} (python-poetry#5181
Browse files Browse the repository at this point in the history
)
  • Loading branch information
finswimmer committed Feb 10, 2022
1 parent 453f6fb commit 6864994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Get tag
id: tag
run: |
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
else
echo ::set-output name=tag::${GITHUB_SHA::7}
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Get tag
id: tag
run: |
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
else
echo ::set-output name=tag::${GITHUB_SHA::7}
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
id: tag
shell: bash
run: |
if [[ ${GITHUB_REF} == /refs/tags* ]]; then
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
else
echo ::set-output name=tag::${GITHUB_SHA::7}
Expand Down

0 comments on commit 6864994

Please sign in to comment.