Skip to content

Commit

Permalink
Update wiki_snap.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
charanravi-online authored Apr 25, 2024
1 parent 2b78722 commit 3106d2b
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/wiki_snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3106d2b

Please sign in to comment.