Skip to content

Add functionality for vars to be used in workflow reference #12

Description

@Wade9320

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions