Skip to content

Commit

Permalink
Ensure we always delete the emailformgateway dir and test_envs.sh file
Browse files Browse the repository at this point in the history
Ensure that we always delete the emailformgateway directory, this
prevents faulures on future runs.

Also ensure that the test_envs.sh file that is dynamically created is
deleted.
  • Loading branch information
owenwaller committed Mar 21, 2024
1 parent d48cfc8 commit 51f7903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/emailformgateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
run: ssh gophercoders.com 'sudo /usr/bin/cp ~/emailformgateway/emailformgateway /usr/local/bin' # ASSUMES config is in /etc/emailformgateway. This has to be done externally

- name: Remove emailformgateway directory from server
if: ${{ always() }}
run: ssh gophercoders.com 'sudo 'rm -rf emailformgateway'

- name: Restart emailformgateway service
Expand All @@ -109,4 +110,4 @@ jobs:
if: ${{ always() }}
run: |
rm -rf ~/.ssh
rm ./test_envs.sh
rm ~/test_envs.sh

0 comments on commit 51f7903

Please sign in to comment.