Skip to content

Commit 5a81746

Browse files
committed
Using PTA actions
1 parent 3378199 commit 5a81746

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/docs-push.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
- uses: actions/checkout@v3
3434
with:
3535
fetch-depth: 0
36-
- name: Set up Git
37-
run: |
38-
git config user.name github-actions
39-
git config user.email [email protected]
40-
- name: Push docs subtree
36+
- name: Push docs to separate repo
37+
uses: cpina/github-action-push-to-another-repository@main
4138
env:
42-
GH_PAT: ${{ secrets.GH_PAT }}
43-
run: |
44-
git remote add docs-repo https://krypticmouse:${GH_PAT}@github.com/krypticmouse/dspy-docs.git
45-
git subtree push --prefix=docs docs-repo master
39+
API_TOKEN_GITHUB: ${{ secrets.GH_PAT }}
40+
with:
41+
source-directory: 'docs'
42+
destination-github-username: 'krypticmouse'
43+
destination-repository-name: 'dspy-docs'
44+
user-email: [email protected]
45+
target-branch: master

0 commit comments

Comments
 (0)