Remove sync workflow for public repo
This commit is contained in:
parent
e52ab7f78c
commit
22e996640d
1 changed files with 0 additions and 36 deletions
36
.github/workflows/sync-to-public.yml
vendored
36
.github/workflows/sync-to-public.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue