Skip to content

Commit df1ab9a

Browse files
committed
(fix) Correct backup artifact upload path in teardown workflow's pre-teardown-backup job step
1 parent f920c6f commit df1ab9a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/teardown-environment.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
uses: actions/upload-artifact@v4
163163
with:
164164
name: ${{ steps.backup.outputs.backup_name }}
165-
path: backups/${{ steps.backup.outputs.backup_name }}
165+
path: backups/${{ steps.backup.outputs.backup_name }}.tar.gz
166166
retention-days: 30
167167

168168
analyze-impact:
@@ -483,6 +483,17 @@ jobs:
483483
name: ${{ github.event.inputs.environment }}-teardown
484484

485485
steps:
486+
- name: Debug Job Conditions
487+
run: |
488+
echo "🔍 Debugging teardown job conditions:"
489+
echo " validated: ${{ needs.validate-request.outputs.confirmed }}"
490+
echo " backend_configured: ${{ needs.discover-backend-state.outputs.backend_configured }}"
491+
echo " bucket_exists: ${{ needs.discover-backend-state.outputs.bucket_exists }}"
492+
echo " state_exists: ${{ needs.discover-backend-state.outputs.state_exists }}"
493+
echo " ready_for_teardown: ${{ needs.prepare-teardown.outputs.ready_for_teardown }}"
494+
echo " resource_count: ${{ needs.prepare-teardown.outputs.resource_count }}"
495+
echo " backup_result: ${{ needs.pre-teardown-backup.result }}"
496+
echo " backup_before_destroy: ${{ github.event.inputs.backup_before_destroy }}"
486497
- name: Checkout Code
487498
uses: actions/checkout@v4
488499

0 commit comments

Comments
 (0)