Scheduled Trigger #26614
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |