From ba58bd14e8306ad20331595a47e76ca6ce13d928 Mon Sep 17 00:00:00 2001 From: Rishav Dhar <19497993+rdhar@users.noreply.github.com> Date: Sun, 12 May 2024 16:46:11 +0100 Subject: [PATCH] align yaml formatting Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com> --- .github/examples/tf_via_pr_comments.yaml | 4 ++-- .github/examples/tf_via_pr_comments_or_input.yaml | 2 +- .github/examples/tf_via_pr_input.yaml | 4 ++-- .github/examples/tf_via_pr_input_matrix.yaml | 15 ++++++++------- .github/workflows/tf_tests.yaml | 5 +---- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/examples/tf_via_pr_comments.yaml b/.github/examples/tf_via_pr_comments.yaml index ebac7caa..8b269752 100644 --- a/.github/examples/tf_via_pr_comments.yaml +++ b/.github/examples/tf_via_pr_comments.yaml @@ -1,11 +1,11 @@ +--- name: TF via PR Comments - on: issue_comment: types: [created, edited] pull_request: types: [synchronize] - paths: ["**/*.tf*"] + paths: ['**/*.tf*'] jobs: tf: diff --git a/.github/examples/tf_via_pr_comments_or_input.yaml b/.github/examples/tf_via_pr_comments_or_input.yaml index 1ba8ef85..9ddeb89c 100644 --- a/.github/examples/tf_via_pr_comments_or_input.yaml +++ b/.github/examples/tf_via_pr_comments_or_input.yaml @@ -5,7 +5,7 @@ on: types: [created, edited] pull_request: types: [opened, reopened, synchronize, closed] - paths: ["**/*.tf*"] + paths: ['**/*.tf*'] jobs: tf: diff --git a/.github/examples/tf_via_pr_input.yaml b/.github/examples/tf_via_pr_input.yaml index 1c3e106a..d575d823 100644 --- a/.github/examples/tf_via_pr_input.yaml +++ b/.github/examples/tf_via_pr_input.yaml @@ -1,9 +1,9 @@ +--- name: TF via PR Input with AWS Authentication - on: pull_request: types: [opened, reopened, synchronize, closed] - paths: ["**/*.tf*"] + paths: ['**/*.tf*'] jobs: tf: diff --git a/.github/examples/tf_via_pr_input_matrix.yaml b/.github/examples/tf_via_pr_input_matrix.yaml index 1b124c94..aeafb2f6 100644 --- a/.github/examples/tf_via_pr_input_matrix.yaml +++ b/.github/examples/tf_via_pr_input_matrix.yaml @@ -1,25 +1,25 @@ +--- name: TF via PR Input Matrix Strategy - on: pull_request: types: [opened, reopened, synchronize, closed] - paths: ["**/*.tf*"] + paths: ['**/*.tf*'] jobs: tf: runs-on: ubuntu-latest if: github.event.action != 'closed' || github.event.pull_request.merged - permissions: - actions: read # Required for workflow query and artifact download. - contents: read # Required for repository checkout. - pull-requests: write # Required for commenting on PR. - strategy: fail-fast: false matrix: deployment: [dev, stg, prd] + permissions: + actions: read # Required for workflow query and artifact download. + contents: read # Required for repository checkout. + pull-requests: write # Required for commenting on PR. + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,6 +38,7 @@ jobs: - name: Echo TF run: | echo "command: ${{ steps.tf.outputs.command }}" + echo "comment_id: ${{ steps.tf.outputs.comment_id }}" echo "plan_id: ${{ steps.tf.outputs.plan_id }}" echo "tf_fmt: ${{ steps.tf.outputs.tf_fmt }}" echo "tf_output: ${{ steps.tf.outputs.tf_output }}" diff --git a/.github/workflows/tf_tests.yaml b/.github/workflows/tf_tests.yaml index d76521f6..678d5bc3 100644 --- a/.github/workflows/tf_tests.yaml +++ b/.github/workflows/tf_tests.yaml @@ -3,10 +3,7 @@ name: TF Tests on: pull_request: types: [opened, reopened, synchronize, closed] - paths: - - '**.yaml' - - scripts/** - - tests/** + paths: ['**.yaml', scripts/**, tests/**] jobs: tests: