-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1006 Bytes
/
readme-stars.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update README ⭐
on:
schedule:
- cron: "51 */4 * * *" # Every 4 hours
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- year: 2015
readmeLocation: y_2015/README.md
- year: 2016
readmeLocation: y_2016/README.md
- year: 2017
readmeLocation: y_2017/README.md
- year: 2023
readmeLocation: y_2023/README.md
- year: 2023
readmeLocation: README.md
steps:
- uses: actions/checkout@v2
- name: Update README for ${{ matrix.year }}
uses: k2bd/advent-readme-stars@v1
with:
userId: 1356574
sessionCookie: ${{ secrets.AOC_SESSION }}
year: ${{ matrix.year }}
readmeLocation: ${{ matrix.readmeLocation }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update README stars