Update Valorant's Statistics #59
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 Valorant's Statistics" | |
on: | |
schedule: | |
- cron: "0 23 * * *" | |
workflow_dispatch: | |
jobs: | |
check_and_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Python packages | |
run: | | |
pip install -r requirements.txt | |
- name: Run updater.py | |
env: | |
GAMERTAG: ${{ secrets.GAMERTAG }} | |
run: | | |
python updater.py | |
- name: Commit and push if changed | |
run: | | |
git config user.name "Yuuka Chan" | |
git config user.email "[email protected]" | |
git diff | |
git add . | |
git commit -sm "workflow: update some magic~" | |
git push |