Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK_VERSION special var #1014

Closed
wants to merge 2 commits into from

Conversation

ja1code
Copy link
Contributor

@ja1code ja1code commented Feb 20, 2023

As suggested here. This PR adds the TASK_VERSION special variable. It is retrieved from the value passed on the version build parameter.

It can be used as follows:

version: '3'

tasks:
  default:
    cmds:
      - echo "{{.TASK_VERSION}}"

@andreynering andreynering linked an issue Feb 23, 2023 that may be closed by this pull request
@andreynering
Copy link
Member

andreynering commented Feb 23, 2023

Hi @ja1code,

I just merged this with small adjustments at ec2110e.

Thanks for contributing!

@skaluzka
Copy link
Contributor

Awesome! Thanks a lot guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please consider to add new special variable TASK_VERSION
3 participants