From e1c5cc9ad7a16b1f77b2d1557a2ce78ed760754a Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Sat, 16 Dec 2023 16:17:20 +0000 Subject: [PATCH] ci: refactor --- .github/workflows/single-page.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/single-page.yml b/.github/workflows/single-page.yml index f6652f3f6..d00e98132 100644 --- a/.github/workflows/single-page.yml +++ b/.github/workflows/single-page.yml @@ -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"