-
Hey, since I can't imagine that being a bug nobody noticed yet, here's my issue in a discussion. ;) I basically try to get the version tag from name: Publish docker image for release
on:
release:
types: [published]
jobs:
generate:
name: Create release docker image
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7.0.3
with:
strip_tag_prefix: true
- name: Print version
run: echo ${DOCKER_TAG} # Prints refs/tags/v0.7.27 instead of 0.7.27
env:
DOCKER_TAG: ${{ steps.branch-name.outputs.tag }}
... Am I doing something wrong? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @JonasDoe, I believe the bug is with the use of strip_tag_prefix input which is set to |
Beta Was this translation helpful? Give feedback.
Hi @JonasDoe, I believe the bug is with the use of strip_tag_prefix input which is set to
true
as opposed to a character that you’ll like to strip from the tag which in your case wouldn’t be necessary. To resolve the bug you can remove thestrip_tag_prefix
input.