Skip to content

Commit

Permalink
Update terraform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold authored and GitHub committed Feb 19, 2025
1 parent ff578c8 commit 97a35c8
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
name: "Terraform"
name: "Gtag"

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
terraform:
uses: HappyPathway/centralized-actions/.github/workflows/terraform.yml@main
uses: HappyPathway/centralized-actions/.github/workflows/terraform-test.yml@main
with:
terraform_version: 1.9.1
terraform_api: app.terraform.io
github_username: djaboxx
github_email: git@roknsound.com
github_org: HappyPathway
terraform_version: ${{vars.TERRAFORM_VERSION}}
terraform_api: ${{vars.TERRAFORM_API}}
terraform_init: true
github_username: ${{vars.GH_USERNAME}}
github_email: ${{vars.GH_EMAIL}}
github_org: ${{ vars.GH_ORG }}
download_cache: false
secrets:
TFE_TOKEN: ${{ secrets.TFE_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

gtag:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: terraform
uses: HappyPathway/centralized-actions/.github/workflows/gtag.yml@main
with:
patch: true
github_org: ${{ vars.GH_ORG }}
github_username: ${{ vars.GH_USERNAME }}
github_email: ${{ vars.GH_EMAIL }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 97a35c8

Please sign in to comment.