From 9e1d4aafcfe4c53b15111c20aeeee7b909603e62 Mon Sep 17 00:00:00 2001 From: sandwich <299465+dskvr@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:16:30 +0000 Subject: [PATCH] use a push action --- .github/workflows/docs.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index d9c63a4..56add09 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -53,6 +53,16 @@ jobs: key: nostr-geotags-docs fail-on-cache-miss: true - - name: Push to gh-pages branch - run: git commit -am "Update Docs @${{ hashFiles('docs') }} " && git push origin gh-pages + - name: Configure and Commit + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -am "Update Docs @${{ hashFiles('docs') }}" + + - name: Push + uses: ad-m/github-push-action@master + with: + github_token: ${{ env.TOKEN }} + force: true + branch: gh-pages