Skip to content

Commit

Permalink
Update cli.yml
Browse files Browse the repository at this point in the history
- Return GitHub workflows
  • Loading branch information
atongjonathan committed Jun 2, 2024
1 parent 8238342 commit d1d0877
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# name: Run main.py
name: Run main.py

# on:
# schedule:
# - cron: '0 3,9,15,21 * * *' # Runs every 6 hours
# push:
# branches:
# - workflows # Triggers on pushes to the workflows branch
on:
schedule:
- cron: '0 3,9,15,21 * * *' # Runs every 6 hours
push:
branches:
- workflows # Triggers on pushes to the workflows branch

# jobs:
# build:
# runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest

# steps:
# - name: Checkout repository content
# uses: actions/checkout@v3 # Checkout the latest version of the code
# with:
# ref: workflows # Ensure the workflows branch is checked out
steps:
- name: Checkout repository content
uses: actions/checkout@v3 # Checkout the latest version of the code
with:
ref: workflows # Ensure the workflows branch is checked out

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.9' # Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Set up Python 3.9

# - name: Install Python packages
# run: |
# python -m pip install --upgrade pip # Upgrade pip
# pip install -r requirements.txt # Install dependencies
- name: Install Python packages
run: |
python -m pip install --upgrade pip # Upgrade pip
pip install -r requirements.txt # Install dependencies
# - name: Execute Python script
# env:
# TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Environment variable for Telegram Bot Token
# DATABASE_URL: ${{ secrets.DATABASE_URL }} # Environment variable for Database URL
# OWNER_ID: ${{ secrets.OWNER_ID }} # Environment variable for Database URL
# run: python main.py # Run the main Python script
- name: Execute Python script
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Environment variable for Telegram Bot Token
DATABASE_URL: ${{ secrets.DATABASE_URL }} # Environment variable for Database URL
OWNER_ID: ${{ secrets.OWNER_ID }} # Environment variable for Database URL
run: python main.py # Run the main Python script

0 comments on commit d1d0877

Please sign in to comment.