33 lines
647 B
YAML
33 lines
647 B
YAML
name: Update Single Page
|
|
|
|
on:
|
|
push:
|
|
branches: main
|
|
workflow_dispatch:
|
|
# schedule:
|
|
# - cron: "0 */2 * * *"
|
|
|
|
jobs:
|
|
update:
|
|
name: Update Single Page
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- 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"
|