Update README #51
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: 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" |