-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 946 Bytes
/
create-list.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
name: Scheduled Trigger
on:
push:
branches:
- master
paths:
- '!list.json'
schedule:
- cron: '0 */1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: prepare environment
run: sudo apt install ca-certificates && sudo update-ca-certificates --fresh && export SSL_CERT_DIR=/etc/ssl/certs
- name: execute py script
run: python api.py
- name: deploy
run: cd listgen && chmod +x deploy.sh && export token=${{ secrets.token }} && ./deploy.sh
env:
CI: true
ACCESS_TOKEN: ${{ secrets.token }}
BASE_BRANCH: master
BRANCH: master