diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 51c69b12..18d20702 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -289,6 +289,12 @@ jobs: name: ${{ env.ARTIFACT_NAME }} path: ${{ inputs.working_directory }} + - name: Restore cache + uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a + with: + path: ${{ needs.terraform-plan.outputs.plugin-cache-dir }} + key: ${{ needs.terraform-plan.outputs.cache-primary-key }} + - name: Setup Terraform uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd with: @@ -300,12 +306,6 @@ jobs: gpg -d --batch --passphrase "$ENCRYPTION_PASSWORD" "$tarball" | tar -xv rm "$tarball" - - name: Restore cache - uses: actions/cache/restore@6849a6489940f00c2f30c0fb92c6274307ccb58a - with: - path: ${{ needs.terraform-plan.outputs.plugin-cache-dir }} - key: ${{ needs.terraform-plan.outputs.cache-primary-key }} - - name: Terraform Apply run: terraform apply -auto-approve -input=false "$TFPLAN_FILE"