Skip to content

Sync Repo

Sync Repo #3

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@v2
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Sync to Public Repo
run: |
git config --global user.name "MagicTheDev"
git remote add public [email protected]:ClashKingInc/ClashKingAssets.git
git add .
git commit -m "Sync to public repo" || echo "No changes to commit"
git push --force public main