-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.61 KB
/
build_analytics_data.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build code analytics data
on:
pull_request:
schedule:
- cron: '0 5 * * *' # once per day at midnight ET
workflow_dispatch:
jobs:
build-analytics-data:
runs-on: ubuntu-latest
steps:
- name: Cancel non-latest runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0 # tags are required for versioneer to determine the version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Sphinx dependencies and package
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt -r requirements-doc.txt
python -m pip install .
sudo apt install cloc
- name: build the docs
run: |
rm data/cloc_stats.yaml
rm data/commit_stats.yaml
rm data/git_paths.yaml
rm data/release_timelines.yaml
cd docs
make allclean
make html
# Commit all changed files back to the repository
- name: Push changes back to repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: 'data/*.yaml'
commit_message: "Automatic update of the code statistics YAML files"
commit_user_name: NWB Bot
commit_user_email: [email protected]
commit_author: NWB Bot <[email protected]>