modified wiki_snap.yaml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: source code sync to wiki | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Ensures the full history is checked out | |
- name: Push changes to target repository | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.REPO_SYNC_TOKEN }} | |
repository: charanravi-online/wiki # Ensure this is the correct repo | |
branch: main # Confirm this is the branch you want to push to. |