-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.08 KB
/
calculate_schedule.yaml
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
name: Update Schedule
on:
schedule:
# run tuesday at noon each week
- cron: '0 12 * * 2'
jobs:
build:
runs-on: ubuntu-latest
environment: scheduling
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
poetry --version
poetry config virtualenvs.create false
- name: Install Dependencies
run: poetry install
- name: Pull Repository
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "slobentanzer@users.noreply.github.com"
git pull origin main
- name: Run Script
env:
BIOCYPHER_GITHUB_PROJECT_TOKEN: ${{ secrets.BIOCYPHER_GITHUB_PROJECT_TOKEN }}
run: poetry run python calculate_schedule.py
- name: Commit Changes and Push
run: |
git add README.md
git commit -m "Update README.md"
git push origin main