Skip to content

Commit 1f6493a

Browse files
Don't switch local branches
1 parent 2c7b1de commit 1f6493a

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

entrypoint.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,26 @@ _switch_to_branch() {
101101
echo "INPUT_BRANCH value: $INPUT_BRANCH";
102102
103103
# Fetch remote to make sure that repo can be switched to the right branch.
104-
if "$INPUT_SKIP_FETCH"; then
105-
_log "debug" "git-fetch will not be executed.";
106-
else
107-
git fetch --depth=1;
108-
fi
109-
110-
# If `skip_checkout`-input is true, skip the entire checkout step.
111-
if "$INPUT_SKIP_CHECKOUT"; then
112-
_log "debug" "git-checkout will not be executed.";
113-
else
114-
# Create new local branch if `create_branch`-input is true
115-
if "$INPUT_CREATE_BRANCH"; then
116-
# shellcheck disable=SC2086
117-
git checkout -B $INPUT_BRANCH --;
118-
else
119-
# Switch to branch from current Workflow run
120-
# shellcheck disable=SC2086
121-
git checkout $INPUT_BRANCH --;
122-
fi
123-
fi
104+
# if "$INPUT_SKIP_FETCH"; then
105+
# _log "debug" "git-fetch will not be executed.";
106+
# else
107+
# git fetch --depth=1;
108+
# fi
109+
110+
# # If `skip_checkout`-input is true, skip the entire checkout step.
111+
# if "$INPUT_SKIP_CHECKOUT"; then
112+
# _log "debug" "git-checkout will not be executed.";
113+
# else
114+
# # Create new local branch if `create_branch`-input is true
115+
# if "$INPUT_CREATE_BRANCH"; then
116+
# # shellcheck disable=SC2086
117+
# git checkout -B $INPUT_BRANCH --;
118+
# else
119+
# # Switch to branch from current Workflow run
120+
# # shellcheck disable=SC2086
121+
# # git checkout $INPUT_BRANCH --;
122+
# fi
123+
# fi
124124
}
125125
126126
_add_files() {

0 commit comments

Comments
 (0)