Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Aug 17, 2024
1 parent dd59497 commit e454e9f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@ jobs:

steps:
- name: Checkout the private repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}

- name: Remove GitHub Actions workflow directory
run: |
rm -rf .github/workflows/
- 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"
git remote add public https://${{ secrets.PAT_TOKEN }}@github.com/ClashKingInc/ClashKingAssets.git
git config --global user.email "[email protected]"
rsync -av --exclude=public_repo ../ public_repo/
cd public_repo
git add .
git commit -m "Sync to public repo" || echo "No changes to commit"
git push --force public main
git push --force

0 comments on commit e454e9f

Please sign in to comment.