From 3106d2b86f284d4c799b36ba87e76c7523ebe567 Mon Sep 17 00:00:00 2001 From: "R. Charan" Date: Thu, 25 Apr 2024 10:26:24 +0530 Subject: [PATCH] Update wiki_snap.yaml --- .github/workflows/wiki_snap.yaml | 34 +++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/wiki_snap.yaml b/.github/workflows/wiki_snap.yaml index 80d4d90..1c5939e 100644 --- a/.github/workflows/wiki_snap.yaml +++ b/.github/workflows/wiki_snap.yaml @@ -8,23 +8,33 @@ on: push: branches: - main # Ensure this is your default or intended branch + jobs: sync: runs-on: ubuntu-latest steps: - - name: Checkout source repo - uses: actions/checkout@v3 + - name: Pushes to Repository + uses: tech-thinker/push-to-repo@main + env: + API_TOKEN_GITHUB: ${{ secrets.REPO_SYNC_TOKEN }} + with: + user-name: "github-actions[bot]" + user-email: github-actions[bot]@users.noreply.github.com + source-directory: "output-dir" + destination-github-username: "charanravi-online" + destination-repository-name: "wiki" + target-branch: main - - name: Configure Git - run: | - git config --global user.name 'GitHub Actions Bot' - git config --global user.email 'actions@github.com' +# - name: Configure Git +# run: | +# git config --global user.name 'GitHub Actions Bot' +# git config --global user.email 'actions@github.com' - - name: Add target repository - run: | - git remote add target https://x-access-token:${{ secrets.REPO_SYNC_TOKEN }}@github.com/charanravi-online/wiki.git +# - name: Add target repository +# run: | +# git remote add target https://x-access-token:${{ secrets.REPO_SYNC_TOKEN }}@github.com/charanravi-online/wiki.git - - name: Push changes to target repository - run: | - git push target main --force +# - name: Push changes to target repository +# run: | +# git push target main --force