Skip to content

Commit 941e965

Browse files
authored
fix(GHA): cleanup trap in API deploy (freeCodeCamp#65959)
1 parent 43ba115 commit 941e965

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/deploy-api.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ jobs:
192192
run: |
193193
REMOTE_SCRIPT="
194194
set -e
195+
trap 'rm -f .env age.key secrets.age.asc .env.tmp' EXIT
195196
echo -e '\nLOG:Deploying API to $TS_MACHINE_NAME...'
196197
cd /home/$TS_USERNAME/docker-swarm-config/stacks/api
197198

0 commit comments

Comments
 (0)