mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 05:13:14 +00:00
fix(deploy): fence rollback create-run on unlock success
This commit is contained in:
parent
de386245d9
commit
cdc143afc1
1 changed files with 2 additions and 1 deletions
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
|
|
@ -417,6 +417,7 @@ jobs:
|
||||||
id: rollback-prepare
|
id: rollback-prepare
|
||||||
|
|
||||||
- name: Discard blocking VCS run before GitHub rollback
|
- name: Discard blocking VCS run before GitHub rollback
|
||||||
|
id: rollback-discard-vcs
|
||||||
if: failure() && steps.rollback-prepare.outputs.rollback_label != ''
|
if: failure() && steps.rollback-prepare.outputs.rollback_label != ''
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
@ -505,7 +506,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create Terraform rollback run
|
- name: Create Terraform rollback run
|
||||||
id: rollback-run
|
id: rollback-run
|
||||||
if: failure() && steps.rollback-prepare.outputs.rollback_label != ''
|
if: failure() && steps.rollback-prepare.outputs.rollback_label != '' && steps.rollback-discard-vcs.outcome == 'success'
|
||||||
uses: hashicorp/tfc-workflows-github/actions/create-run@8e08d1ba957673f5fbf971a22b3219639dc45661 # v1.3.2
|
uses: hashicorp/tfc-workflows-github/actions/create-run@8e08d1ba957673f5fbf971a22b3219639dc45661 # v1.3.2
|
||||||
env:
|
env:
|
||||||
TF_VAR_release_version_label: '"${{ steps.rollback-prepare.outputs.rollback_label }}"'
|
TF_VAR_release_version_label: '"${{ steps.rollback-prepare.outputs.rollback_label }}"'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue