File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,15 @@ jobs:
15
15
runs-on :
16
16
- ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v4
19
18
- name : Push to public Docs repo
20
19
env :
21
20
PUBLIC_ORG_NAME : strangebeecorp
22
21
run : |
22
+ git init -b main
23
23
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
24
25
git fetch --all
25
26
git config user.name github-actions[bot]
26
27
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
You can’t perform that action at this time.
0 commit comments