ci: refactor
This commit is contained in:
parent
1d752e0927
commit
e1c5cc9ad7
27
.github/workflows/single-page.yml
vendored
27
.github/workflows/single-page.yml
vendored
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user