Skip to content

Commit a85fe3f

Browse files
Remove _switch_to_branch function
1 parent b8c0aac commit a85fe3f

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

entrypoint.sh

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ _main() {
3939

4040
_set_github_output "changes_detected" "true"
4141

42-
_switch_to_branch
43-
4442
_add_files
4543

4644
# Check dirty state of repo again using git-diff.
@@ -97,32 +95,6 @@ _git_is_dirty() {
9795
[ -n "$gitStatus" ]
9896
}
9997
100-
_switch_to_branch() {
101-
echo "INPUT_BRANCH value: $INPUT_BRANCH";
102-
103-
# 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
124-
}
125-
12698
_add_files() {
12799
echo "INPUT_ADD_OPTIONS: ${INPUT_ADD_OPTIONS}";
128100
_log "debug" "Apply add options ${INPUT_ADD_OPTIONS}";
@@ -168,6 +140,8 @@ _tag_commit() {
168140
169141
_push_to_github() {
170142
143+
echo "INPUT_BRANCH value: $INPUT_BRANCH";
144+
171145
echo "INPUT_PUSH_OPTIONS: ${INPUT_PUSH_OPTIONS}";
172146
_log "debug" "Apply push options ${INPUT_PUSH_OPTIONS}";
173147

0 commit comments

Comments
 (0)