Skip to content

Commit e092bdf

Browse files
committed
Revert "DAGE-465: Pull branch if it exists, create it if it does not exist"
This reverts commit 381c169.
1 parent 14740c5 commit e092bdf

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/changelog.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,9 @@ jobs:
3737
- name: Create new branch
3838
run: |
3939
git config --global user.email "[email protected]"
40-
git fetch origin
41-
if git show-ref --verify --quiet refs/remotes/origin/${{ env.branch }}; then
42-
echo "Branch ${{ env.branch }} exists. Checking out and pulling latest."
43-
git checkout ${{ env.branch }} || git checkout -b ${{ env.branch }} origin/${{ env.branch }}
44-
git pull origin ${{ env.branch }}
45-
else
46-
echo "Branch ${{ env.branch }} does not exist. Creating new branch."
47-
git checkout master
48-
git checkout -b ${{ env.branch }}
49-
fi
40+
git fetch
41+
git checkout master
42+
git branch ${{ env.branch }}
5043
5144
- name: Checkout branch
5245
run: |

0 commit comments

Comments
 (0)