Skip to content

Commit 3306f0a

Browse files
authored
Merge pull request #116 from ACCESS-NRI/test-repro-exit-when-installs-fails
test-repro.yml: Exit ssh session if test setup fails
2 parents 4d281eb + 4ff24b6 commit 3306f0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test-repro.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ jobs:
109109
run: |
110110
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash<<'EOT'
111111
112+
# Immediately exit if any test setup fails
113+
set -e
114+
112115
# Remove base experiment (and everything else) if it exists
113116
if [ -d "${{ env.EXPERIMENT_LOCATION }}" ]; then
114117
rm -rf "${{ env.EXPERIMENT_LOCATION }}"

0 commit comments

Comments
 (0)