Skip to content

Commit

Permalink
Update Actions & Terraform (#84)
Browse files Browse the repository at this point in the history
* Update GitHub Actions

* Update Terraform version
  • Loading branch information
sprankhub authored Apr 29, 2024
1 parent 639ec54 commit baf00fb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: echo $GOOGLE_APPLICATION_CREDENTIALS_DATA > $GOOGLE_APPLICATION_CREDENTIALS

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Terraform init
id: init
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/terraform-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- name: Get pull request ref
id: sha
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
result-encoding: string
script: |
Expand All @@ -29,12 +29,12 @@ jobs:
return pr.data.head.sha
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.sha.outputs.result }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3

- name: Terraform Format
id: fmt
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Terraform Init
id: init
run: terraform init -backend=false

- name: Terraform Validate
id: validate
run: terraform validate -no-color
10 changes: 5 additions & 5 deletions .github/workflows/terraform-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
run: echo $GOOGLE_APPLICATION_CREDENTIALS_DATA > $GOOGLE_APPLICATION_CREDENTIALS
- name: Get pull request ref
id: ref
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const { number } = context.issue;
return `refs/pull/${context.issue.number}/merge`;
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -52,12 +52,12 @@ jobs:
})
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.ref.outputs.result }}

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3

- name: Terraform init
id: init
Expand All @@ -68,7 +68,7 @@ jobs:
run: terraform plan -no-color
continue-on-error: true

- uses: actions/github-script@v6
- uses: actions/github-script@v7
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
with:
Expand Down
34 changes: 17 additions & 17 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit baf00fb

Please sign in to comment.