Bot Updating Package Versions #743
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: template-readme | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| rupdate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cuchi/jinja2-action@v1.3.0 | |
| with: | |
| template: ci-scripts/README.template | |
| output_file: README.md | |
| data_file: metadata/metadata.yml | |
| data_format: yaml | |
| - run: | | |
| git config --global user.name 'README Bot' | |
| git config --global user.email 'readme-bot@users.noreply.github.com' | |
| git add README.md | |
| git diff --quiet HEAD || git commit -m "Bot Updating README" && git push origin master |