Skip to content

Tag name not well-formed #26551

Answered by airtower-luna
Imane0 asked this question in Actions
Discussion options

You must be logged in to vote

The problem is with this env definition, you can’t use Bash expressions there:

Imane0:
env:
  MAJOR: $(cat VERSION.txt | cut -d . -f 1)
  MINOR: $(cat VERSION.txt | cut -d . -f 2)
  PATCH: $(cat VERSION.txt | cut -d . -f 3)

You’ll need to process the version file in a step, and set output parameters or environment variables, whichever works better for your use case. If you need the version parts in multiple jobs it’s probably better to use outputs and turn them into job outputs (see jobs.<job_id>.outputs).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants