Skip to content
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

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

Open
Wade9320 opened this issue Jul 25, 2024 · 0 comments
Open

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

Wade9320 opened this issue Jul 25, 2024 · 0 comments

Comments

@Wade9320
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant