-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1.01 KB
/
python-script.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
name: Run Python Scripts
on:
schedule:
- cron: '0 5 * * *' # Runs at 05:00 UTC every day
# You can also trigger this workflow manually
workflow_dispatch:
jobs:
run-scripts:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Specify the Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Fetch the napari plugin data
run: python fetch_napari_data.py
- name: Create static html files
run: python create_static_html_files.py
- name: Configure Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: Commit and Push changes
run: |
git add .
git commit -m "Update data files" -a || echo "No changes to commit"
git push