Codeforces Auto-Commit #3297
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: Codeforces Auto-Commit | |
on: | |
schedule: | |
- cron: '*/30 * * * *' # Runs every 30 minutes | |
workflow_dispatch: # Allows manual trigger | |
jobs: | |
auto-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run auto-commit script | |
env: | |
CODEFORCES_HANDLE: ${{ secrets.CODEFORCES_HANDLE }} | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
GITHUB_REPO: ${{ github.repository }} | |
run: python .github/workflows/codeforces_auto_commit.py |