Skip to content

Commit

Permalink
ci: pull latest changes from main before pushing coverage assets
Browse files Browse the repository at this point in the history
- Added a step to pull the latest changes from the main
before attempting to push coverage assets.
  • Loading branch information
abdullahbayram committed Dec 24, 2024
1 parent 75d6579 commit 500d9e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ jobs:
- name: Generate Coverage Assets
run: npm run generate-coverage-assets

- name: Pull latest changes
run: git pull origin main

- name: Commit and Push Coverage Assets
run: |
git config user.name "GitHub Actions Bot"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add badges/*.svg badges/coverage-summary.png
git commit -m "chore: update coverage badges and summary" || echo "No changes to commit"
git push
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 500d9e6

Please sign in to comment.