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.
publish_coverage_pr
1 parent 669fa61 commit 3b9ad55Copy full SHA for 3b9ad55
1 file changed
.github/workflows/publish_coverage_pr.yml
@@ -157,8 +157,11 @@ jobs:
157
run: |
158
cd ./www-test-code-coverage
159
BRANCH_NAME="pr-$PR_NUMBER"
160
- git fetch origin "$BRANCH_NAME" || true
161
- git checkout "$BRANCH_NAME" || git checkout -b "$BRANCH_NAME"
+ if git fetch origin "$BRANCH_NAME"; then
+ git checkout -B "$BRANCH_NAME" FETCH_HEAD
162
+ else
163
+ git checkout -b "$BRANCH_NAME"
164
+ fi
165
166
# Remove all directories except .github and .git from branch:
167
find . -mindepth 1 -maxdepth 1 -type d -not -name '.github' -not -name '.git' -exec git rm -rf {} + || true
0 commit comments