Skip to content

Commit e81dbe9

Browse files
committed
feat: GH action to update releases
1 parent a75c694 commit e81dbe9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update Releases
2+
3+
on:
4+
schedule:
5+
- cron: '59 13 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
name: Update releases
11+
runs-on: ubuntu-latest
12+
permissions:
13+
# Give the default GITHUB_TOKEN write permission to commit and push the
14+
# added or changed files to the repository.
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
- name: install dependencies
22+
run: python -m pip install -r requirements.txt
23+
- name: update releases
24+
run: python track_releases.py
25+
- name: update json
26+
run: python yaml2json.py
27+
- name: commit if necessary
28+
uses: stefanzweifel/git-auto-commit-action@v5
29+
with:
30+
file_pattern: simtools/*.yaml
31+
commit_message: Update yaml files from releases
32+
- name: commit if necessary
33+
uses: stefanzweifel/git-auto-commit-action@v5
34+
with:
35+
file_pattern: simtools/simtools.json
36+
commit_message: Update JSON from yaml files

0 commit comments

Comments
 (0)