Remove sync workflow for public repo

This commit is contained in:
github-actions[bot] 2026-01-30 18:12:29 +00:00
parent e52ab7f78c
commit 22e996640d

View file

@ -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