-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 923 Bytes
/
task.yaml
File metadata and controls
35 lines (30 loc) · 923 Bytes
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
name: the task runner
on:
push:
workflow_dispatch:
schedule:
- cron: '10 03 * * *'
- cron: '10 06 * * *'
- cron: '10 11 * * *'
- cron: '10 16 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run the overall task
env:
PRIVATE_BASE_KEY: ${{ secrets.PRIVATE_BASE_KEY }}
PRIVATE_TABLE_NAME_PRODUCER: ${{ secrets.PRIVATE_TABLE_NAME_PRODUCER }}
PRIVATE_API_KEY_AIRTABLE: ${{ secrets.PRIVATE_API_KEY_AIRTABLE }}
run: |
python task.py
- uses: gautamkrishnar/keepalive-workflow@master