Skip to content

Commit bb2cbf1

Browse files
Consider not requiring SVN credentials for dry-run
1 parent 210430b commit bb2cbf1

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

deploy.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,21 @@ fi
3636
# IMPORTANT: while secrets are encrypted and not viewable in the GitHub UI,
3737
# they are by necessity provided as plaintext in the context of the Action,
3838
# so do not echo or use debug mode unless you want your secrets exposed!
39-
if [[ -z "$SVN_USERNAME" ]]; then
40-
echo "Set the SVN_USERNAME secret"
41-
exit 1
42-
fi
43-
44-
if [[ -z "$SVN_PASSWORD" ]]; then
45-
echo "Set the SVN_PASSWORD secret"
46-
exit 1
47-
fi
4839

40+
# Check if it's a dry-run first
4941
if $INPUT_DRY_RUN; then
50-
echo "ℹ︎ Dry run: No files will be committed to Subversion."
42+
echo "ℹ︎ Dry run: No files will be committed to Subversion."
43+
else
44+
# If it's not a dry-run, check for SVN credentials
45+
if [[ -z "$SVN_USERNAME" ]]; then
46+
echo "Set the SVN_USERNAME secret"
47+
exit 1
48+
fi
49+
50+
if [[ -z "$SVN_PASSWORD" ]]; then
51+
echo "Set the SVN_PASSWORD secret"
52+
exit 1
53+
fi
5154
fi
5255

5356
# Allow some ENV variables to be customized

0 commit comments

Comments
 (0)