Update banner links and version numbers #7
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 Banner Version | |
| on: | |
| push: | |
| paths: | |
| - 'banner.json' | |
| - 'banners/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Generate new version | |
| run: echo "$(date +'%Y%m%d%H%M%S')" > banner_version.txt | |
| - name: Commit and push version file | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git add banner_version.txt | |
| git diff --staged --quiet || (git commit -m "Update banner version" && git push) |