-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b9933a
commit 7ee9e52
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,6 +194,9 @@ jobs: | |
environment: dev | ||
permissions: | ||
contents: read | ||
outputs: | ||
CONFIG_VERSION: ${{ steps.plan-upload.outputs.configuration_version_id }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -239,4 +242,18 @@ jobs: | |
id: apply | ||
with: | ||
run: ${{ steps.apply-run.outputs.run_id }} | ||
comment: "Confirmed from GitHub Actions CI ${{ github.sha }}" | ||
comment: "Confirmed from GitHub Actions CI ${{ github.sha }}" | ||
|
||
destroy-plan: | ||
name: "Create terraform destroy plan" | ||
needs: [create-app] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Create plan | ||
uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: destroy-plan | ||
with: | ||
workspace: ${{ env.TF_WORKSPACE }} | ||
configuration_version: ${{ NEEDS.create-app.outputs.CONFIG_VERSION }} | ||
is_destroy: true |