2022-10-17 11:03:22 +02:00
|
|
|
name: Update readme progress tracker
|
|
|
|
|
2021-12-29 14:12:01 +01:00
|
|
|
on:
|
2022-10-17 11:03:22 +02:00
|
|
|
schedule:
|
|
|
|
- cron: "51 */4 * * *" # Every 4 hours
|
|
|
|
workflow_dispatch:
|
2021-12-29 14:12:01 +01:00
|
|
|
|
|
|
|
jobs:
|
2022-10-17 11:03:22 +02:00
|
|
|
update-readme:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
if: ${{ env.AOC_ENABLED }}
|
|
|
|
env:
|
|
|
|
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
|
|
|
|
- uses: k2bd/advent-readme-stars@v1
|
|
|
|
if: ${{ env.AOC_ENABLED }}
|
|
|
|
env:
|
|
|
|
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
|
|
|
|
with:
|
|
|
|
userId: ${{ secrets.AOC_USER_ID }}
|
|
|
|
sessionCookie: ${{ secrets.AOC_SESSION }}
|
|
|
|
year: ${{ secrets.AOC_YEAR }}
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
if: ${{ env.AOC_ENABLED }}
|
|
|
|
env:
|
|
|
|
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
|
|
|
|
with:
|
|
|
|
commit_message: "update readme progess"
|