-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some more hackery attempting to get environment variables shared betw…
…een steps. See actions/starter-workflows#68 (comment)
- Loading branch information
1 parent
58dbb3e
commit f9959c7
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f9959c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@open-collar
I see you had some trouble with env variables in GitHub actions and wanted to offer some help. This commit is close but not quite the correct syntax (see docs). The syntax is a bit weird; here's what you want:
and if you don't use
.version/version.txt
, simplified to$VERSION_REVISION
,$VERSION_MAJOR
,$VERSION_MINOR
, and$VERSION
will then be available as variables in the remaining action steps. E.g.echo "Version: $VERSION"
.f9959c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's brilliant, thank you very much. I hope to look at this properly in a few days, after the Christmas chaos has died down.
f9959c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f9959c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to help!