diff --git a/.github/workflows/sync-to-public.yml b/.github/workflows/sync-to-public.yml deleted file mode 100644 index c79cf69..0000000 --- a/.github/workflows/sync-to-public.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Sync to Public Repo - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - sync: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - - name: Sync to public repo - env: - TOKEN: ${{ secrets.PUBLIC_REPO_TOKEN }} - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - # Create branch without sync workflow - git checkout -b temp-sync-branch - git rm .github/workflows/sync-to-public.yml - git commit -m "Remove sync workflow for public repo" - - # Setup credentials and push - git config --global credential.helper store - echo "https://x-access-token:${TOKEN}@github.com" > ~/.git-credentials - - git remote add public https://github.com/wiestju/anny-booking-automation.git - git push public temp-sync-branch:main --force