Skip to content

Commit 8a93be8

Browse files
committed
Merge branch 'main' of github.com:StrangeBee/docs
2 parents c850430 + 1d6abb8 commit 8a93be8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/misc.sync.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ 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 fetch public main
25-
git fetch origin main
24+
git remote add origin https:///${{ secrets.PRIVATE_ORG_NAME }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ secrets.PRIVATE_ORG_NAME }}/docs
25+
git fetch --all
26+
2627
git config user.name github-actions[bot]
2728
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
28-
git checkout main
29-
git push --force public main
29+
git checkout --track origin/main
30+
git push -f public main

0 commit comments

Comments
 (0)