File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
4941if $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
5154fi
5255
5356# Allow some ENV variables to be customized
You can’t perform that action at this time.
0 commit comments