File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,16 @@ 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 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
+
26
27
git config user.name github-actions[bot]
27
28
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
You can’t perform that action at this time.
0 commit comments