Skip to content

Run Script

Run Script #281

name: Run Script
on:
schedule:
- cron: '0 15 * * *' # Runs at 15:00 UTC daily
workflow_dispatch: # Allows manual runs from the Actions tab
# Use default permissions
permissions:
contents: write
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4 # Updated to v4
- name: Set up Python
uses: actions/setup-python@v5 # Updated to v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements.txt
- name: Run script.py
run: python script.py
- name: Run deduplicate.py
run: python deduplicate.py
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Auto-commit from GitHub Actions"
# Optional: Add a custom commit author
# commit_user_name: github-actions[bot]
# commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com