-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Feature: add support for path as environment variable #339
Comments
Ok, this seems to work, so the documentation should be enhanced
|
Thanks for posting the working solution! I was surprised that this was not working: env:
BUILD_REPO: owner/repo
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: clone build repository
uses: actions/checkout@v3
with:
repository: $BUILD_REPO and using
However, using contexts works: env:
BUILD_REPO: owner/repo
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: clone build repository
uses: actions/checkout@v3
with:
repository: ${{ env.BUILD_REPO }} |
I run into the same situation now, and I can't understand why I must use contexts |
We are using environment variables throughout our scripts to point to the location of the various git repositories we are using. Within our github action we are using for example
When now using checkout we need to pass ACE_TAO as path but it would be more easier for maintenance that we can use $DOC_ROOT, so
to something like below, refer to DOC_ROOT env
The text was updated successfully, but these errors were encountered: