Skip to content

Sync Repo

Sync Repo #5

Workflow file for this run

name: Sync to Public Repo
on:
workflow_dispatch: # Allows the action to be triggered manually
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout the private repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Checkout the Public Repo
uses: actions/checkout@v3
with:
repository: ClashKingInc/ClashKingAssets
token: ${{ secrets.PAT_TOKEN }}
path: public_repo
- name: Sync to Public Repo
run: |
git config --global user.name "MagicTheDev"
cd public_repo
cp -R ../. .
git add .
git commit -m "Sync to public repo" || echo "No changes to commit"
git push --force