Skip to content

Commit

Permalink
Merge pull request #3 from abdullahbayram/fix/ci-pull-before-push
Browse files Browse the repository at this point in the history
ci: pull latest changes from main before pushing coverage assets
  • Loading branch information
abdullahbayram authored Dec 24, 2024
2 parents 75d6579 + 500d9e6 commit 28fa110
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 28fa110

Please sign in to comment.