Update Data #2092
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: "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 | |