Skip to content

Commit 769003c

Browse files
committed
add check for ssh-user not null
1 parent 9bb7563 commit 769003c

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

actions/deploy-quarto-static-site/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ runs:
3939
# Make it easier to see when environment setup is incorrect
4040
shell: bash
4141
run: |
42+
if [ -z "${{ inputs.ssh-user }}" ]; then
43+
echo "ssh-user is not set"
44+
exit 1
45+
fi
4246
if [ -z "${{ inputs.ssh-private-key }}" ]; then
4347
echo "ssh-private-key is not set"
4448
exit 1

actions/deploy-reflex-backend/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ runs:
4646
# Make it easier to see when environment setup is incorrect
4747
shell: bash
4848
run: |
49+
if [ -z "${{ inputs.ssh-user }}" ]; then
50+
echo "ssh-user is not set"
51+
exit 1
52+
fi
4953
if [ -z "${{ inputs.ssh-private-key }}" ]; then
5054
echo "ssh-private-key is not set"
5155
exit 1

actions/deploy-reflex-frontend/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ runs:
3535
# Make it easier to see when environment setup is incorrect
3636
shell: bash
3737
run: |
38+
if [ -z "${{ inputs.ssh-user }}" ]; then
39+
echo "ssh-user is not set"
40+
exit 1
41+
fi
3842
if [ -z "${{ inputs.ssh-private-key }}" ]; then
3943
echo "ssh-private-key is not set"
4044
exit 1

actions/test-action/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ runs:
2727
- name: Check variables set
2828
shell: bash
2929
run: |
30+
if [ -z "${{ inputs.ssh-user }}" ]; then
31+
echo "ssh-user is not set"
32+
exit 1
33+
fi
3034
if [ -z "${{ inputs.ssh-private-key }}" ]; then
3135
echo "ssh-private-key is not set"
3236
exit 1

0 commit comments

Comments
 (0)