From fafd6e902f4c80e9249d93379d34fe19200abe9f Mon Sep 17 00:00:00 2001 From: roknpublic Date: Fri, 6 Sep 2024 10:15:18 -0700 Subject: [PATCH] Add .github/workflows/terraform.yaml --- .github/workflows/terraform.yaml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/terraform.yaml diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml new file mode 100644 index 0000000..3c54a0d --- /dev/null +++ b/.github/workflows/terraform.yaml @@ -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 }} \ No newline at end of file