Status #9274
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: Status | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0,10,20,30,40,50 * * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install requests | |
- name: Run script | |
run: python3 status.py | |
- name: Commit changes | |
if: ${{ success() || failure() }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Reden" | |
git add data/* | |
git commit -am "Update status" | |
git push |