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 753e334 commit fc5249a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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: Remove GitHub Actions workflow directory
run: |
rm -rf .github/workflows/
- name: Sync to Public Repo
run: |
git config --global user.name "MagicTheDev"
git remote add public https://<PAT_TOKEN>@github.com/ClashKingInc/ClashKingAssets.git
git add .
git commit -m "Sync to public repo" || echo "No changes to commit"
git push --force public main
env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

0 comments on commit fc5249a

Please sign in to comment.