Skip to content

Commit

Permalink
Check for existing master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Dec 4, 2019
1 parent c445ff0 commit 1c1550e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ jobs:
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags origin
git branch --force --create-reflog master origin/master
git rev-parse --verify master
if (-not $?) {
git branch --force --create-reflog master origin/master
}
shell: pwsh
- name: Install GitVersion
uses: gittools/actions/setup-gitversion@v0.3
with:
Expand Down

0 comments on commit 1c1550e

Please sign in to comment.