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

Make substitutions available to lifecycle scripts #420

Open
esciara opened this issue Jul 30, 2019 · 2 comments
Open

Make substitutions available to lifecycle scripts #420

esciara opened this issue Jul 30, 2019 · 2 comments

Comments

@esciara
Copy link

esciara commented Jul 30, 2019

This is close to #283, but wider. Is it possible to make substitutions available to the lifecycle scripts?

I am stuck at the moment because I cannot run scripts that would need to know the {{previousTag}} and {{currentTag}}, like in the following example:

{
  "scripts": {
    "postbump": "bump2version --current-version {{previousTag}} --new-version {{currentTag}}"
  }
}
@esciara
Copy link
Author

esciara commented Jul 30, 2019

Note: after more digging, my specific example would be solved by resolving #313, which is the aim of #372 . Not sure whether making substitutions available would solve other situations...

@tim-felix-lange
Copy link

Would definitely be interested in this feature as well for various use cases, like creating version-specific release branches in precommit scripts, etc.

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

No branches or pull requests

2 participants