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 6a8d6bd commit 4c73319Copy full SHA for 4c73319
.github/workflows/update-swift-version.yml
@@ -37,8 +37,8 @@ jobs:
37
38
git fetch
39
BRANCH=ci/update-swift-version
40
- if git show-ref --verify --quiet "refs/heads/$BRANCH"; then
41
- git checkout "$BRANCH"
+ if git ls-remote --exit-code --heads origin "$BRANCH"; then
+ git checkout -b "$BRANCH" --track "origin/$BRANCH"
42
else
43
git checkout -b "$BRANCH"
44
fi
0 commit comments