-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,19 +58,18 @@ jobs: | |
|
||
- name: Push coverage badge to gh-pages | ||
run: | | ||
cp .github/badges/jacoco.svg /tmp/coverage-badge.svg | ||
mkdir -p public | ||
cp .github/badges/jacoco.svg public/coverage-badge.svg | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git stash -u | ||
git fetch origin | ||
git checkout -B gh-pages --track origin/gh-pages || git checkout -b gh-pages | ||
git checkout -b gh-pages origin/gh-pages || git checkout -b gh-pages | ||
cp /tmp/coverage-badge.svg coverage-badge.svg | ||
git add coverage-badge.svg | ||
mv public/* . | ||
git add -f coverage-badge.svg | ||
git commit -m "Update coverage badge [skip ci]" || echo "No changes to commit" | ||
git push -f https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/gcesario203/Bookmarket-grupo07 gh-pages | ||
git push -f origin gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |