Skip to content

Update Data

Update Data #1968

Workflow file for this run

name: "Update Data"
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
Update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install BeautifulSoup4
pip install requests
- name: Update data.js
run: python main.py
- name: Commit changes
run: |
git config --local user.email "nishattasnem48@gmail.com"
git config --local user.name "nishat48"
git remote set-url origin https://${{secrets.COMMIT_SECRET}}@github.com/shhossain/codeforces-all-contests.git
git add .
git commit -m "Update data.js"
git push origin main