We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14740c5 commit e092bdfCopy full SHA for e092bdf
.github/workflows/changelog.yml
@@ -37,16 +37,9 @@ jobs:
37
- name: Create new branch
38
run: |
39
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
+ git fetch
+ git checkout master
+ git branch ${{ env.branch }}
50
51
- name: Checkout branch
52
0 commit comments