Update version badge #2
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: Update version badge | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| badge: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read version | |
| id: ver | |
| run: echo "World%20Historical%20Gazetteer=$(cat VERSION)" >> $GITHUB_OUTPUT | |
| - name: Update README badge | |
| uses: emibcn/badge-action@v1 | |
| with: | |
| label: version | |
| status: "v${{ steps.ver.outputs.version }}" | |
| color: blue | |
| path: VERSION-BADGE.svg | |
| - name: Commit badge | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "[email protected]" | |
| git add VERSION-BADGE.svg | |
| git commit -m "Update version badge" | |
| git push |