Skip to content

Commit

Permalink
DdCaCf8g ImproveCiCd (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcesario203 authored Jan 29, 2025
2 parents 02c1b96 + 2387d0b commit 64776b3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/java-dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 64776b3

Please sign in to comment.