Skip to content

Update main.py

Update main.py #82

Workflow file for this run

name: Make
on:
workflow_dispatch:
push:
permissions:
contents: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ hashFiles('scripts/requirements.txt') }}
restore-keys: pip-cache-
- name: Install Dependencies
# if: steps.pip-cache.outputs.cache-hit != 'true'
run: pip install -r ./scripts/requirements.txt
- name: Make
run: python ./scripts/main.py
- name: Git
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Make"
git push
fi