From 0be592e5b42230fdba3bb34c5b4be4de3362e05d Mon Sep 17 00:00:00 2001 From: digorgonzola <29941279+digorgonzola@users.noreply.github.com> Date: Tue, 12 Dec 2023 00:21:43 +1100 Subject: [PATCH] workflows: fix tg commands --- .github/workflows/deploy-production.yml | 4 ++-- .github/workflows/deploy-staging.yml | 8 ++++---- .github/workflows/pre-commit.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index aac762f..59a0600 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -58,7 +58,7 @@ jobs: tf_version: ${{ env.tf_version }} tg_version: ${{ env.tg_version }} tg_dir: ${{ env.tg_dir }} - tg_command: 'run plan -out=tf.plan' + tg_command: 'plan -out=tf.plan' env: TF_INPUT: 0 TF_IN_AUTOMATION: true @@ -72,7 +72,7 @@ jobs: tf_version: ${{ env.tf_version }} tg_version: ${{ env.tg_version }} tg_dir: ${{ env.tg_dir }} - tg_command: 'run apply tf.plan' + tg_command: 'apply tf.plan' env: TF_INPUT: 0 TF_IN_AUTOMATION: true diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 18cd135..6530bc6 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -85,7 +85,7 @@ jobs: tf_version: ${{ env.tf_version }} tg_version: ${{ env.tg_version }} tg_dir: ${{ env.tg_dir }} - tg_command: 'run plan -out=tf.plan' + tg_command: 'plan -out=tf.plan' env: TF_INPUT: 0 TF_IN_AUTOMATION: true @@ -99,7 +99,7 @@ jobs: tf_version: ${{ env.tf_version }} tg_version: ${{ env.tg_version }} tg_dir: ${{ env.tg_dir }} - tg_command: 'run apply tf.plan' + tg_command: 'apply tf.plan' env: TF_INPUT: 0 TF_IN_AUTOMATION: true @@ -109,7 +109,7 @@ jobs: create_draft_release: name: Create Release runs-on: ubuntu-latest - needs: [build_test_push] + needs: [build_test_push, staging_deploy] permissions: contents: write steps: @@ -121,7 +121,7 @@ jobs: id: create_draft_release uses: softprops/action-gh-release@v1 with: - name: Draft Release - commit '${{ github.sha }}' + name: Draft Release - commit ${{ github.sha }} body: | ## Info This draft release has been automatically created from merge commit '${{ github.event.head_commit.message }}'. diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index fd69c98..37920ad 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,8 +6,8 @@ on: - master permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout + id-token: write + contents: read jobs: pre_commit: