feat: make readme star action opt-in
This commit is contained in:
parent
37b2027a99
commit
9fb2c434f9
1 changed files with 26 additions and 16 deletions
42
.github/workflows/readme-stars.yml
vendored
42
.github/workflows/readme-stars.yml
vendored
|
@ -1,19 +1,29 @@
|
||||||
name: Update README ⭐
|
name: Update readme progress tracker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "51 */4 * * *" # Every 4 hours
|
- cron: "51 */4 * * *" # Every 4 hours
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-readme:
|
update-readme:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: k2bd/advent-readme-stars@v1
|
if: ${{ env.AOC_ENABLED }}
|
||||||
with:
|
env:
|
||||||
userId: ${{ secrets.AOC_USER_ID }}
|
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
|
||||||
sessionCookie: ${{ secrets.AOC_SESSION }}
|
- uses: k2bd/advent-readme-stars@v1
|
||||||
year: ${{ secrets.AOC_YEAR }}
|
if: ${{ env.AOC_ENABLED }}
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
env:
|
||||||
with:
|
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
|
||||||
commit_message: Update README stars
|
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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue