Skip to content

Update Classes

Update Classes #5

Workflow file for this run

name: ClassUpdate evy12hrs
on:
schedule:
- cron: '0 */12 * * *' # every 12 hours
workflow_dispatch: # Allows manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Execute py script
run: |
cd ./ClassUpdate && python ./replace.py DEFAULT -y
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty)
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main