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

Variablize GitHub Actions versions #35

Open
rchildress87 opened this issue Nov 17, 2022 · 0 comments
Open

Variablize GitHub Actions versions #35

rchildress87 opened this issue Nov 17, 2022 · 0 comments

Comments

@rchildress87
Copy link
Contributor

rchildress87 commented Nov 17, 2022

The same Actions versions are being duplicated in each job. I think we should replace with environment versions and version tags to simplify updates and improve readability.

Current state:

env:
  PY_VERSION: "3.10"
  GO_VERSION: "^1.19.0"

jobs:
  terraform_fmt:
    name: terraform_fmt
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # tag=v3

Proposed state:

env:
  ACTIONS_SETUP_GO_VERSION: "v3"
  PY_VERSION: "3.10"
  GO_VERSION: "^1.19.0"

jobs:
  terraform_fmt:
    name: terraform_fmt
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-go@${{ env.ACTIONS_SETUP_GO_VERSION }}
@rchildress87 rchildress87 linked a pull request Nov 17, 2022 that will close this issue
11 tasks
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

Successfully merging a pull request may close this issue.

1 participant