Skip to content

Commit

Permalink
Merge pull request #98 from stefanzweifel/revert-95-master
Browse files Browse the repository at this point in the history
Revert "Creating orphan branch"
  • Loading branch information
stefanzweifel authored Sep 11, 2020
2 parents d51384f + b3fc6f8 commit 9cb7118
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

set -eu
set -x

_main() {
_switch_to_repository
Expand Down Expand Up @@ -40,13 +39,8 @@ _git_is_dirty() {
_switch_to_branch() {
echo "INPUT_BRANCH value: $INPUT_BRANCH";

if git show-ref --verify --quiet refs/heads/$INPUT_BRANCH; then
# Switch to branch from current Workflow run
git checkout $INPUT_BRANCH;
else
git checkout --orphan $INPUT_BRANCH
git rm -rf .
fi
# Switch to branch from current Workflow run
git checkout $INPUT_BRANCH;
}

_add_files() {
Expand Down

0 comments on commit 9cb7118

Please sign in to comment.