actions / actions/reusable-workflows

Add functionality for vars to be used in workflow reference

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.