Add github style short hash to the environment variables
Right now I am doing this in my scripts:
$env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
It would be nice if you had a short hash created for us automatically.
Also, I am trying to use an environment variable in my assembly info like this:
assembly_info:
patch: true
assembly_informational_version: "{version} $($env:GIT_HASH)"
But the variable doesn't get expanded. How can I use variables in there?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 03 Mar, 2015 10:39 PM
It should be just:
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.