Fix checking out branch names with / chars

If a branch has a file-path looking name, then `git checkout`
can get confused. `git switch` won't.
This commit is contained in:
Christian Holtje 2020-10-10 00:58:00 -04:00
parent f922a52bf1
commit 31f730400e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ _switch_to_branch() {
echo "INPUT_BRANCH value: $INPUT_BRANCH"; echo "INPUT_BRANCH value: $INPUT_BRANCH";
# Switch to branch from current Workflow run # Switch to branch from current Workflow run
git checkout $INPUT_BRANCH; git switch "$INPUT_BRANCH";
} }
_add_files() { _add_files() {