File tree Expand file tree Collapse file tree 3 files changed +42
-8
lines changed
Expand file tree Collapse file tree 3 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ workflow_call :
78 workflow_dispatch :
89
910jobs :
1011 build :
1112 name : Build
12- runs-on : ubuntu-latest
13- permissions :
14- contents : write
13+ runs-on : ubuntu-22.04
1514 steps :
1615 - uses : actions/checkout@v4
1716 with :
2019 with :
2120 bundler-cache : true
2221 - run : bundle exec rake
22+ # TODO: Improve testing.
2323 continue-on-error : true
2424 - name : Build annotations
2525 run : bundle exec rake build
Original file line number Diff line number Diff line change 1+ name : Update annotations
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 12 * * *'
6+ workflow_dispatch :
7+
8+ jobs :
9+ run :
10+ name : Update annotations
11+ runs-on : ubuntu-22.04
12+ permissions :
13+ contents : write
14+ steps :
15+ - uses : ./.github/workflows/update-submodules.yml
16+
17+ - uses : ./.github/workflows/build.yml
18+
19+ - uses : actions/checkout@v4
20+ with :
21+ submodules : true
22+
23+ - name : Check if annotations changed
24+ id : annotations_changed
25+ run : echo "changed=$(git diff --quiet HEAD -- dist; echo $?)" >> $GITHUB_OUTPUT
26+
27+ - name : Setup git user
28+ if : ${{ steps.annotations_changed.outputs.changed == true }}
29+ run : |
30+ git config user.name github-actions
31+ git config user.email [email protected] 32+ - name : Commit changes
33+ if : ${{ steps.annotations_changed.outputs.changed == true }}
34+ run : |
35+ git add dfhack df-structures
36+ git commit -m "Auto-update annotations"
37+ git push
Original file line number Diff line number Diff line change 11name : Update submodules
22
3- on :
4- schedule :
5- - cron : ' 0 12 * * *'
6- workflow_dispatch :
3+ on : workflow_call
74
85jobs :
96 run :
107 name : Update submodules
11- runs-on : ubuntu-latest
8+ runs-on : ubuntu-22.04
129 permissions :
1310 contents : write
1411 steps :
You can’t perform that action at this time.
0 commit comments