From fc5249a807109074f77d7cd4d91b16c8421f0625 Mon Sep 17 00:00:00 2001 From: Magic <82341152+MagicTheDev@users.noreply.github.com> Date: Sat, 17 Aug 2024 10:11:03 -0500 Subject: [PATCH] initial --- .github/workflows/sync.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..9352d22 --- /dev/null +++ b/.github/workflows/sync.yml @@ -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://@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 }}