Skip to content

Commit c1faf3e

Browse files
committed
Strip tag prefix
1 parent da92874 commit c1faf3e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/pr-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
- name: Get branch name
3333
id: branch-name
3434
uses: tj-actions/branch-names@v8
35+
with:
36+
strip_tag_prefix: ''
3537

3638
- name: Current branch name
3739
run: |
@@ -43,7 +45,7 @@ jobs:
4345
if: steps.branch-name.outputs.is_tag == 'true'
4446
run: |
4547
echo "TAG_NAME=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
46-
echo "TAG_LATEST=latest" >> ${GITHUB_ENV}
48+
echo "TAG_LATEST=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
4749
4850
- name: Running on a branch and merge.
4951
if: steps.branch-name.outputs.is_tag != 'true' && github.event_name == 'push' && steps.branch-name.outputs.current_branch != 'main'

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- name: Get branch name
3838
id: branch-name
3939
uses: tj-actions/branch-names@v8
40+
with:
41+
strip_tag_prefix: ''
4042

4143
- name: Current branch name
4244
run: |

0 commit comments

Comments
 (0)