Skip to content

Update README

Update README #45

---
name: Update README
on:
schedule:
# Re-generate every Monday
- cron: "0 0 * * 1"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
generate:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate README
working-directory: ./awesome-generator
run: cargo run generate-readme > ../README.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
- name: Commit updated README
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Re-generate README"