-
Notifications
You must be signed in to change notification settings - Fork 35
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
Allow variable usage for tag #3
Comments
I agree that it's annoying vars aren't accepted by action inputs :(. Using env vars indeed seems like the right approach. |
I've added support for passing tags through an env var here: 351fcec . You can test it now by (for now) running sth like: steps:
…
- name: This step creates the tag name
run: |
TAG="v"
TAG="${TAG}1"
TAG="${TAG}.0"
TAG="${TAG}.0"
echo ::set-env name=RELEASE_TAG::"${TAG}"
- uses: meeDamian/github-release@ad87d28
with:
token: ${{secrets.GITHUB_TOKEN}}
… Please let me know if it works for you :). |
It works for me since I can pass the environment I have. Thanks 🤗 |
Glad to hear that 😁! |
I want to provide a tag number via environment variable set in earlier steps; however, it treats it as a string.
then I came up with the workaround below
(I'm sorry, my shell scripting is not good enough, so I came up with something like this in here)
it checks if the given name exists in an environment variable or not.
The text was updated successfully, but these errors were encountered: