Skip to content

Commit

Permalink
Strip tag prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushroshan committed Apr 28, 2024
1 parent da92874 commit c1faf3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
with:
strip_tag_prefix: ''

- name: Current branch name
run: |
Expand All @@ -43,7 +45,7 @@ jobs:
if: steps.branch-name.outputs.is_tag == 'true'
run: |
echo "TAG_NAME=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
echo "TAG_LATEST=latest" >> ${GITHUB_ENV}
echo "TAG_LATEST=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
- name: Running on a branch and merge.
if: steps.branch-name.outputs.is_tag != 'true' && github.event_name == 'push' && steps.branch-name.outputs.current_branch != 'main'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
with:
strip_tag_prefix: ''

- name: Current branch name
run: |
Expand Down

0 comments on commit c1faf3e

Please sign in to comment.