From 2b69c1793c3f090fe3d7f3a37c938e4a5bb521f7 Mon Sep 17 00:00:00 2001 From: Cohee Date: Thu, 1 Jun 2023 22:43:22 +0300 Subject: [PATCH] Update update-docs.yml --- .github/workflows/update-docs.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 2f04ac3ac..13665d6e7 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -29,11 +29,15 @@ jobs: cp readme.md SillyTavern-Docs/readme.md cp public/notes/update.md SillyTavern-Docs/update.md - - name: Commit and push changes to SillyTavern-Docs - run: | - cd SillyTavern-Docs - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git add guidebook.md faq.md README.md - git commit -m "Update guidebook, faq and README files" - git push + - name: Deploy to external repository + uses: cpina/github-action-push-to-another-repository@main + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY } + with: + # GitHub Action output files + source-directory: SillyTavern-Docs/ + destination-github-username: SillyTavern + destination-repository-name: SillyTavern-Docs + user-email: github-actions[bot]@users.noreply.github.com + user-name: "GitHub Actions" + target-branch: "main"