Skip to content

Commit

Permalink
Add .github/workflows/terraform.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
roknpublic committed Sep 6, 2024
1 parent 7325265 commit fafd6e9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Gtag"

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

jobs:
terraform:
uses: HappyPathway/centralized-actions/.github/workflows/terraform-test.yml@main
with:
terraform_version: ${{vars.TERRAFORM_VERSION}}
terraform_api: ${{vars.TERRAFORM_API}}
github_username: ${{vars.GH_USERNAME}}
github_email: ${{vars.GH_EMAIL}}
github_org: ${{ vars.GH_ORG }}
secrets:
TFE_TOKEN: ${{ secrets.TFE_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

gtag:
if: ${{ 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 fafd6e9

Please sign in to comment.