Skip to content

Commit e4f2963

Browse files
committed
Add Github Actions cronjob
1 parent 62ecfea commit e4f2963

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Nightly Build of Reports Website
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *' # Every night at midnight
7+
8+
jobs:
9+
run:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
16+
- name: Run generator
17+
env:
18+
REPORTS: https://github.com/Rust-GCC/reporting
19+
WEBSITE: ..
20+
run: |
21+
cd generator
22+
cargo run
23+
24+
- name: Commit changes
25+
uses: EndBug/add-and-commit@v9
26+
with:
27+
default_author: nightly_build_gha
28+
message: Nightly reports generation
29+
add: './_posts/*.md'

0 commit comments

Comments
 (0)