-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1.17 KB
/
update_characterisation.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
name: Update characterisation
on:
workflow_dispatch:
# Run the second day of each month
schedule:
- cron: "0 0 2 * *"
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install subversion -y
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --without dev
- name: Update file
run: |
cd gene_characterisation_status
bash get_latest_numbers.sh
bash update_characterisation.sh
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: updated to last revision
file_pattern: "gene_characterisation_status/results/*.tsv gene_characterisation_status/results/*.svg gene_characterisation_status/latest_revision/*.txt gene_characterisation_status/latest_revision/*.tsv"