actions / actions/reusable-workflows
Add functionality for vars to be used in workflow reference
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 89
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
It would be great if there was functionality when using a reusable workflow instead of supplying the branch name or tag name but instead using an environment variable.
The advantage of this is that it would allow teams to version their templates, and also rollback the usage of template much quicker.
GitLab supports this functionality through their templates.
Below is an example of what it would look like
jobs:
tflint-tf:
uses: example-org/github-actions-templates/.github/workflows/terraform-lint.yml@${{ vars.TEMPLATE_VERSION }}
This var would be set at an Organisation level.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no repository file, test, or entry point; start by checking how reusable workflow references using uses: are documented and handled. Compare the requested organisation-level vars.TEMPLATE_VERSION example with the existing workflow-reference behavior, and define done as a supported, documented way to select the referenced version or a clear platform limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100