advent-of-code/.github/workflows/readme-stars.yml
Tristan Guichaoua 751fde7451
ci: update readme-stars workflow (#36)
* update checkout action to v4
* update git-auto-commit-action to v5, add required write permission
* use variable for run condition, check on job level
2023-11-24 09:25:37 +01:00

24 lines
768 B
YAML

name: Update readme ⭐️ progress
on:
# !Please set a different minute than 51 if you enable this!
# schedule:
# - cron: "51 */6 * * *" # Every 6 hours
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
if: ${{ vars.AOC_ENABLED == 'true' }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: k2bd/advent-readme-stars@v1
with:
userId: ${{ secrets.AOC_USER_ID }}
sessionCookie: ${{ secrets.AOC_SESSION }}
year: ${{ secrets.AOC_YEAR }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "update readme progess"