Skip to content

main.py

main.py #972

Workflow file for this run

name: main.py
on:
schedule:
- cron: '15 */12 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: PROD
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
env:
CF_ACCESSGROUP_ID: ${{ secrets.CF_ACCESSGROUP_ID }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_TOKEN: ${{ secrets.CF_TOKEN }}
run: python script.py --account "$CF_ACCOUNT_ID" --token "$CF_TOKEN" --group "$CF_ACCESSGROUP_ID"