ci: refactor

This commit is contained in:
taskylizard 2023-12-16 16:17:20 +00:00
parent 1d752e0927
commit e1c5cc9ad7

View File

@ -1,9 +1,11 @@
name: Update Single Page name: Update Single Page
on: on:
push:
branches: main
workflow_dispatch: workflow_dispatch:
schedule: # schedule:
- cron: "0 */2 * * *" # - cron: "0 */2 * * *"
jobs: jobs:
update: update:
@ -14,22 +16,17 @@ jobs:
contents: write contents: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- name: Configure Git - name: Create local changes
run: | run: python .github/single-page.py
git config user.name "taskylizard" # env:
git config user.email "75871323+taskylizard@users.noreply.github.com" # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
- name: Update with:
shell: bash commit_message: "♻️ update single page"
run: |
python .github/single-page.py
git add .
git commit -m '♻️ update single page'
git push