-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 952 Bytes
/
stats.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
on:
push:
branches: [ master ]
schedule:
# * is a special character in YAML, so you have to quote this string
- cron: '0 3 * * 3'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
update_stats:
if: |
!contains(github.event.head_commit.message, '[actions]')
runs-on: [self-hosted, java]
steps:
- uses: actions/checkout@v3
- name: Build with Maven
run: mvn package
- name: Task 01 -- Count heavy atoms
run: java -cp target/rcsb-stats.jar org.rcsb.stats.tasks.Task01_CountHeavyAtoms
- name: Setup git author information
run: |
git config user.name RCSBSystem
git config user.email [email protected]
- name: Commit updated counts
run: |
git add README.md
git commit --allow-empty -m "[actions] Updated counts"
- name: Push back to GitHub
run: |
git push