Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/publish_coverage_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ jobs:
run: |
cd ./www-test-code-coverage
BRANCH_NAME="pr-$PR_NUMBER"
git fetch origin "$BRANCH_NAME" || true
git checkout "$BRANCH_NAME" || git checkout -b "$BRANCH_NAME"
if git fetch origin "$BRANCH_NAME"; then
git checkout -B "$BRANCH_NAME" FETCH_HEAD
else
git checkout -b "$BRANCH_NAME"
fi

# Remove all directories except .github and .git from branch:
find . -mindepth 1 -maxdepth 1 -type d -not -name '.github' -not -name '.git' -exec git rm -rf {} + || true
Expand Down