feat: make readme star action opt-in

This commit is contained in:
Felix Spöttel 2022-10-17 11:03:22 +02:00
parent 37b2027a99
commit 9fb2c434f9

View file

@ -1,4 +1,5 @@
name: Update README ⭐ name: Update readme progress tracker
on: on:
schedule: schedule:
- cron: "51 */4 * * *" # Every 4 hours - cron: "51 */4 * * *" # Every 4 hours
@ -9,11 +10,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
if: ${{ env.AOC_ENABLED }}
env:
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
- uses: k2bd/advent-readme-stars@v1 - uses: k2bd/advent-readme-stars@v1
if: ${{ env.AOC_ENABLED }}
env:
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
with: with:
userId: ${{ secrets.AOC_USER_ID }} userId: ${{ secrets.AOC_USER_ID }}
sessionCookie: ${{ secrets.AOC_SESSION }} sessionCookie: ${{ secrets.AOC_SESSION }}
year: ${{ secrets.AOC_YEAR }} year: ${{ secrets.AOC_YEAR }}
- uses: stefanzweifel/git-auto-commit-action@v4 - uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ env.AOC_ENABLED }}
env:
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
with: with:
commit_message: Update README stars commit_message: "update readme progess"