Skip to content

Commit

Permalink
fix step ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dull committed Nov 21, 2024
1 parent 0786352 commit 26cc893
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,20 @@ jobs:
[ -n "${CURRENT_NULL_RESOURCE_ID}" ]
[ "${CURRENT_NULL_RESOURCE_ID}" -ne "${NEW_NULL_RESOURCE_ID}" ]
- name: Run Terraform Test, Locked ENV
id: prelock_InT
continue-on-error: true
run: |
curl -X LOCK -sS http://localhost:2442/lock?env=InT
cd .github/build_tests
terraform apply --auto-approve
- name: Verify Command Failed Successfully
run: |
if [ "${{ steps.run_command.outcome }}" != "success" ]; then
if [ "${{ steps.run_command.exit_code }}" -eq 1 ]; then
if [ "${{ steps.prelock_InT.outcome }}" != "success" ]; then
if [ "${{ steps.prelock_InT.exit_code }}" -eq 1 ]; then
echo "Environment lock was successful"
curl -X UNLOCK -sS http://localhost:2442/unlock?env=InT
else
echo "Step failed with unexpected exit code ${{ steps.run_command.exit_code }}."
echo "Step failed with unexpected exit code ${{ steps.prelock_InT.exit_code }}."
exit 1
fi
else
Expand Down

0 comments on commit 26cc893

Please sign in to comment.