Skip to content

Commit 9fb2c43

Browse files
committed
feat: make readme star action opt-in
1 parent 37b2027 commit 9fb2c43

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

.github/workflows/readme-stars.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1-
name: Update README ⭐
1+
name: Update readme progress tracker
2+
23
on:
3-
schedule:
4-
- cron: "51 */4 * * *" # Every 4 hours
5-
workflow_dispatch:
4+
schedule:
5+
- cron: "51 */4 * * *" # Every 4 hours
6+
workflow_dispatch:
67

78
jobs:
8-
update-readme:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: k2bd/advent-readme-stars@v1
13-
with:
14-
userId: ${{ secrets.AOC_USER_ID }}
15-
sessionCookie: ${{ secrets.AOC_SESSION }}
16-
year: ${{ secrets.AOC_YEAR }}
17-
- uses: stefanzweifel/git-auto-commit-action@v4
18-
with:
19-
commit_message: Update README stars
9+
update-readme:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
if: ${{ env.AOC_ENABLED }}
14+
env:
15+
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
16+
- uses: k2bd/advent-readme-stars@v1
17+
if: ${{ env.AOC_ENABLED }}
18+
env:
19+
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
20+
with:
21+
userId: ${{ secrets.AOC_USER_ID }}
22+
sessionCookie: ${{ secrets.AOC_SESSION }}
23+
year: ${{ secrets.AOC_YEAR }}
24+
- uses: stefanzweifel/git-auto-commit-action@v4
25+
if: ${{ env.AOC_ENABLED }}
26+
env:
27+
AOC_ENABLED: ${{ secrets.AOC_ENABLED }}
28+
with:
29+
commit_message: "update readme progess"

0 commit comments

Comments
 (0)