-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 "Your Name" | ||
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 --tag | ||
git push --follow-tags | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |