Skip to content

Commit

Permalink
Stop shell interpolation on the runner with calling ssh
Browse files Browse the repository at this point in the history
We want the $PWD variable to be the one on the remote server,
not the value on the runner. So use singe quotes to stop shell interpolation
and to pass the ssh line as is to the rmeote.
  • Loading branch information
owenwaller committed Feb 22, 2024
1 parent c918d57 commit 3500264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/emailformgateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Run emailer.test test
run: |
ssh gophercoders.com "source ./test_envs.sh; TEST_TEMPLATES_DIR=$PWD TEST_DOMAIN=gophercoders.com ./emailer.test"
ssh gophercoders.com 'source ./test_envs.sh; TEST_TEMPLATES_DIR=$PWD TEST_DOMAIN=gophercoders.com ./emailer.test'
- name: Delete ssh dir
if: ${{ always() }}
Expand Down

0 comments on commit 3500264

Please sign in to comment.