forked from greenelab/scrumlord
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1004 Bytes
/
cron.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
name: run_upkeep
on:
schedule:
- cron: '0 15 * * *'
jobs:
run_upkeep:
env:
TZ: America/New_York
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Dependencies
run: >
python -m pip install --upgrade pip &&
pip install -r requirements.txt
- name: Load 1Password secrets
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_DOCS_BOT_SERVICE_TOKEN }}
DOCS_BOT_GITHUB_TOKEN: ${{ secrets.OP_DOCS_BOT_GITHUB_TOKEN }}
- name: Run Upkeep
run: >
python upkeep.py \
--repository="AlexsLemonade/scrum" \
--token="${{ env.DOCS_BOT_GITHUB_TOKEN }}" \
--workdays-ahead=1