Update API Status #127
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 API Status | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Run every day | |
workflow_dispatch: | |
jobs: | |
update-api-status: | |
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 status check script | |
run: python .github/scripts/update_status.py | |
- name: Commit and push changes | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
git add status.json | |
git commit -m "Update API status [skip ci]" | |
git push |