Skip to content

Commit 351d0cc

Browse files
committed
Correcting misc.sync
1 parent a715584 commit 351d0cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/misc.sync.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
runs-on:
1616
- ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
1918
- name: Push to public Docs repo
2019
env:
2120
PUBLIC_ORG_NAME: strangebeecorp
2221
run: |
22+
git init -b main
2323
git remote add public https:///${{ env.PUBLIC_ORG_NAME }}:${{ secrets.PUBLIC_DOCS_TOKEN }}@github.com/${{ env.PUBLIC_ORG_NAME }}/docs
24+
git remote add origin https:///${{ secrets.PRIVATE_ORG_NAME }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.PRIVATE_ORG_NAME }}/docs
2425
git fetch --all
2526
git config user.name github-actions[bot]
2627
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
27-
git checkout public main
28-
git pull --rebase origin main
28+
git checkout --track origin/main
29+
git push -f public main

0 commit comments

Comments
 (0)