Skip to content

Commit

Permalink
align yaml formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <19497993+rdhar@users.noreply.github.com>
  • Loading branch information
rdhar committed May 12, 2024
1 parent ff17fe3 commit ba58bd1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/examples/tf_via_pr_comments.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/examples/tf_via_pr_comments_or_input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [created, edited]
pull_request:
types: [opened, reopened, synchronize, closed]
paths: ["**/*.tf*"]
paths: ['**/*.tf*']

jobs:
tf:
Expand Down
4 changes: 2 additions & 2 deletions .github/examples/tf_via_pr_input.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
15 changes: 8 additions & 7 deletions .github/examples/tf_via_pr_input_matrix.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}"
5 changes: 1 addition & 4 deletions .github/workflows/tf_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ba58bd1

Please sign in to comment.