-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.23 KB
/
monthly-update.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
name: Monthly Update
on:
schedule:
- cron: '0 0 25 * *' # Runs at 00:00 on the 25th day of each month
workflow_dispatch: # Allows manual triggering for testing
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r www/python/src/requirements.txt
- name: Run fetch_wikipedia_genes
run: python www/python/src/fetch_wikipedia_genes.py
- name: Run generate_gmt
run: python www/python/src/generate_gmt.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Tiago Lubiana"
git add .
git commit -m "Monthly update: fetch genes and generate GMT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bump version and push
run: |
pip install bump2version
bump2version minor --allow-dirty --commit --tag --verbose
git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}