Update GitHub Profile Graphs #341
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 GitHub Profile Graphs | |
on: | |
schedule: | |
- cron: '30 0 * * *' # Schedule it to run every day at 12:30 AM UTC (adjust the time zone as needed) | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' # Choose your desired Python version | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Run Python script | |
run: python codeforces.py # Replace with your Python script filename | |
- name: Commit and push changes | |
run: | | |
git config user.name 'CoderInTheNorth-049' | |
git config user.email 'amnetwork049@gmail.com' | |
git add . | |
git commit -m 'Update graphs' | |
git push https://${{ secrets.GH_PAT }}@github.com/CoderInTheNorth-049/Codeforces_Tracker.git | |
env: | |
GH_PAT: ${{ secrets.GH_PAT }} |