docs: add Codecov coverage badge to README #11
This file contains hidden or 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
| name: Version Bump | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Git | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "github-actions@github.com" | |
| - name: Bump version if needed | |
| run: bash scripts/bump-version.sh | |
| - name: Generate CHANGELOG.md | |
| run: bash scripts/generate-changelog.sh | |
| - name: Commit CHANGELOG.md | |
| run: | | |
| git add CHANGELOG.md | |
| git diff --cached --quiet || (git commit -m "docs: update changelog" && git push origin HEAD) |