Answer by Slava for Passing env variable inputs to a reusable workflow
A simple experiment shows that it is not necessary to echo variable to the $GITHUB_OUTPUT and it is enough to define it just in the outputsname: Test outputson: workflow_dispatch:env: BRANCH: mainjobs:...
View ArticleAnswer by Sid for Passing env variable inputs to a reusable workflow
Lately GitHub introduced a feature to support variables in environment (very basic and the long awaited feature, I must say).So other solution could be to create an environment in GitHub, create some...
View ArticleAnswer by Caleb for Passing env variable inputs to a reusable workflow
The use of ::set-output is now deprecated.See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/.Now recommended:- name: Save state run: echo...
View ArticleAnswer by GuiFalourd for Passing env variable inputs to a reusable workflow
After some researches, I found this thread explaining that:You can’t pass ENV variables to the reusable workflow, so they are almost useless in this pattern.Moreover, on the official documentation, it...
View ArticlePassing env variable inputs to a reusable workflow
I'm trying to call a reusable workflow from another one, passing it some input variables. In the caller workflow I have some environment variables that I want to pass as input to the reusable one, like...
View ArticleAnswer by Rayan arnel for Passing env variable inputs to a reusable workflow
If you are looking to retrieve a variable defined at the GitHub repository settings level, here is how I accessed this value:name: Decrypt env.enc file to .env and load in variable ENV contenton:...
View ArticleAnswer by Henry Chan for Passing env variable inputs to a reusable workflow
You can access your workflow_dispatch (defined in caller workflow) inputs via${{github.event.inputs}} from the reusable workflowNote: your workflow_dispatch must be in the default (master) branch``
View ArticleAnswer by Anthony Brenelière for Passing environment variables as inputs to a...
In my case the simplest thing to do was just move the environment variables to environment secrets in the GitHub repository setting.https://github.com/{YourOrg}/{YourRepo]/settings/environmentsvars are...
View ArticleAnswer by Rayan arnel for Passing environment variables as inputs to a...
If you are looking to retrieve a variable defined at the GitHub repository settings level, here is how I accessed this value:name: Decrypt env.enc file to .env and load in variable ENV contenton:...
View ArticleAnswer by Henry Chan for Passing environment variables as inputs to a...
You can access your workflow_dispatch (defined in caller workflow) inputs via${{github.event.inputs}} from the reusable workflowNote: your workflow_dispatch must be in the default (master) branch``
View ArticleAnswer by Slava for Passing environment variables as inputs to a reusable...
A simple experiment shows that it is not necessary to echo variable to the $GITHUB_OUTPUT and it is enough to define it just in the outputsname: Test outputson: workflow_dispatch:env: REPOSITORY:...
View ArticleAnswer by Sid for Passing environment variables as inputs to a reusable workflow
Lately GitHub introduced a feature to support variables in environment (very basic and the long awaited feature, I must say).So other solution could be to create an environment in GitHub, create some...
View ArticleAnswer by Caleb for Passing environment variables as inputs to a reusable...
The use of ::set-output is now deprecated.See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/.Now recommended:- name: Save state run: echo...
View ArticleAnswer by GuiFalourd for Passing environment variables as inputs to a...
After some researches, I found this thread explaining that:Because you can’t pass ENV variables to the reusable workflow, they are almost useless in this pattern.Moreover, on the official...
View ArticlePassing environment variables as inputs to a reusable workflow
I'm trying to call a reusable workflow from another one, passing it some input variables. In the caller workflow, I have some environment variables that I want to pass as input to the reusable one,...
View Article