Bot Updating Package Versions #306
This file contains 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.2.2 | |
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 |