Environment variable for APPVEYOR_PROJECT_USERNAME?
I have a snippet of code at https://github.com/appveyor/ci/issues/38#issuecomment-70628826 that I want to use more broadly and make generic across repositories owned by different users. Currently the AppVeyor username part of that code has to be hard-coded, which makes this more difficult to do in a generic way. APPVEYOR_REPO_NAME does not quite work for this because the repo owner might be an organization or a different user than the AppVeyor builds run under, and the repo name gets modified to APPVEYOR_PROJECT_SLUG.
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 20 Feb, 2015 05:25 PM
Nice timing! :) Just yesterday we deployed an update with
APPVEYOR_ACCOUNT_NAME
variable. Seems this is what you need.2 Posted by tony on 21 Feb, 2015 06:34 AM
Perfect, that will do nicely. Just didn't notice it in the docs (maybe they weren't updated yet).
tony closed this discussion on 21 Feb, 2015 06:34 AM.