Skip to content

Commit

Permalink
update to new node16 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcorr authored Oct 20, 2022
1 parent d3e56ec commit 315996f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tf-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

# Install the latest version of the Terraform CLI
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
# Save plan to artifacts
- name: Publish Terraform Plan
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: tfplan
path: tfplan
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
# If this is a PR post the changes
- name: Push Terraform Output to PR
if: github.ref != 'refs/heads/main'
uses: actions/github-script@v2
uses: actions/github-script@v6
env:
SUMMARY: "${{ steps.tf-plan-string.outputs.summary }}"
with:
Expand All @@ -128,19 +128,19 @@ jobs:
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

# Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
uses: hashicorp/setup-terraform@v2

# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init

# Download saved plan from artifacts
- name: Download Terraform Plan
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: tfplan

Expand Down

0 comments on commit 315996f

Please sign in to comment.