mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
ci: refactor
This commit is contained in:
parent
1d752e0927
commit
e1c5cc9ad7
1 changed files with 12 additions and 15 deletions
27
.github/workflows/single-page.yml
vendored
27
.github/workflows/single-page.yml
vendored
|
|
@ -1,9 +1,11 @@
|
|||
name: Update Single Page
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 */2 * * *"
|
||||
# schedule:
|
||||
# - cron: "0 */2 * * *"
|
||||
|
||||
jobs:
|
||||
update:
|
||||
|
|
@ -14,22 +16,17 @@ jobs:
|
|||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "taskylizard"
|
||||
git config user.email "75871323+taskylizard@users.noreply.github.com"
|
||||
|
||||
- name: Update
|
||||
shell: bash
|
||||
run: |
|
||||
python .github/single-page.py
|
||||
git add .
|
||||
git commit -m '♻️ update single page'
|
||||
git push
|
||||
- name: Create local changes
|
||||
run: python .github/single-page.py
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "♻️ update single page"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue