mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
feat: automate single-page
This commit is contained in:
parent
b836367c87
commit
04c167fde7
2 changed files with 59 additions and 0 deletions
34
.github/workflows/single-page.yml
vendored
Normal file
34
.github/workflows/single-page.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Update Single Page
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 */2 * * *'
|
||||
|
||||
jobs:
|
||||
update:
|
||||
name: Update Single Page
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- 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
|
||||
run: |
|
||||
python .github/single-page.py
|
||||
git add .
|
||||
git commit -m "♻️ update single page"
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue