Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created September 15, 2022 21:14
Show Gist options
  • Select an option

  • Save KyMidd/fb5b8a32cb2010a54d5dc55e4faacd81 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/fb5b8a32cb2010a54d5dc55e4faacd81 to your computer and use it in GitHub Desktop.
- name: Terraform Plan
id: plan
run: terraform plan -input=false -refresh=false -var 'region=${{ env.region}}' -out tf.plan
- name: Cache Files
id: cache-files
uses: actions/upload-artifact@v3
with:
name: tf-cache-${{ github.run_id }}
retention-days: 90
# Grab the entire workspace, but exclude the .terraform folder
# It's large and has provider binaries we can easily download in deploy step
path: |
${{ github.workspace }}/
!${{ github.workspace }}/.terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment