forked from mlab-modules/ISM02
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.19 KB
/
metadata_updater.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
name: Metadata updater
on:
push:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f doc/assets/workflows/requirements.txt ]; then pip install -r doc/assets/workflows/requirements.txt; fi
- name: Update metadata
env:
gh_repo: ${{ github.event.repository.name }}
gh_url: ${{ github.server_url }}/${{ github.repository }}
gh_branch: ${{ github.head_ref || github.ref_name }}
gh_description: ${{ github.event.repository.name }}
gh_repository: ${{ github.repository }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 doc/assets/workflows/update_metadata.py
python3 doc/assets/workflows/update_kitspace.py
- uses: stefanzweifel/[email protected]
with:
commit_message: Update metadata files
commit_options: '-a'