Skip to content

modified wiki_snap.yaml #13

modified wiki_snap.yaml

modified wiki_snap.yaml #13

Workflow file for this run

name: Sync Source Code to Wiki Repository
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@v2
- 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: Push changes to target repository
run: |
git push target main --force