8000 Update GitHub Action workflows · tobiasvl/adventofcode@a30bb93 · GitHub
[go: up one dir, main page]

Skip to content

Commit a30bb93

Browse files
committed
Update GitHub Action workflows
- Add 2022 workflow - Make 2021 workflow manual - Use v3 of checkout Action
1 parent 0462c88 commit a30bb93

File tree

8 files changed

+43
-9
lines changed

8 files changed

+43
-9
lines changed

.github/workflows/badges-2015.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2016.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2017.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2018.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2019.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2020.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2021.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Update 2021 badge
22
on:
3-
schedule: # run workflow based on schedule
4-
- cron: '11 0 1-25 12 *' # from the 1. December till 25. December every day at 11 AM (avoid load at full hours)
3+
# schedule: # run workflow based on schedule
4+
# - cron: '11 0 1-25 12 *' # from the 1. December till 25. December every day at 11 AM (avoid load at full hours)
55

66
workflow_dispatch: # allow to manually start the workflow
77

@@ -12,7 +12,7 @@ jobs:
1212
update:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2 # clones your repo
15+
- uses: actions/checkout@v3 # clones your repo
1616

1717
- uses: joblo2213/aoc-badges-action@v3
1818
with:

.github/workflows/badges-2022.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Update 2022 badge
2+
on:
3+
schedule: # run workflow based on schedule
4+
- cron: '11 0 1-25 12 *' # from the 1. December till 25. December every day at 11 AM (avoid load at full hours)
5+
6+
workflow_dispatch: # allow to manually start the workflow
7+
8+
# push: # (disabled) run on push, be carefull with this setting
9+
# as the workflow should only be triggered at a rate lower than
10+
# 4 times a hour to keep traffic on aoc site low
11+
jobs:
12+
update:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3 # clones your repo
16+
17+
- uses: joblo2213/aoc-badges-action@v3
18+
with:
19+
userid: 204401 # your user id, see setup on how to obtain
20+
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
21+
22+
# Optional inputs:
23+
#
24+
year: 2022 # The year for which stats should be retrieved
25+
# leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json' # The url of the leaderboard from witch the data is fetched. Typically your private leaderboard.
26+
file: 'README.md' # The file that contains the badges
27+
# dayRegex: '(?<=https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue)' # Regular expression that finds the content of the day badge iun your file.
28+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2022%20⭐-)[0-9]+(?=-yellow)' # Regular expression that finds the content of the stars badge iun your file.
29+
# daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)' # Regular expression that finds the content of the days completed badge iun your file.
30+
31+
- uses: stefanzweifel/git-auto-commit-action@v4 # Step that pushes these local changes back to your github repo
32+
with:
33+
commit_message: Update badges
34+
file_pattern: README.md

0 commit comments

Comments
 (0)
0