File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,15 @@ jobs:
4646 # Using rsync to copy files. This will also remove files in dest that are no longer in source.
4747 rsync -av --delete --exclude='.git/' "$SOURCE_PATH/" "$DEST_PATH/"
4848
49- - name : Commit and push changes
50- env :
51- GITHUB_TOKEN : ${{ secrets.HAYSTACK_BOT_TOKEN }}
52- run : |
53- git config --global user.name "github-actions[bot]"
54- git config --global user.email "github-actions[bot]@users.noreply.github.com"
55-
56- cd docs-website
57-
58- if [[ -n $(git status -s) ]]; then
59- echo "Syncing docs with Docusaurus..."
60- git add .
61- git commit -m "docs: Sync Haystack API reference"
62- git push
63- else
64- echo "No changes to sync with Docusaurus."
65- fi
49+ - name : Create Pull Request
50+ uses : peter-evans/create-pull-request@v7
51+ with :
52+ token : ${{ secrets.HAYSTACK_BOT_TOKEN }}
53+ commit-message : " Sync Haystack API reference on Docusaurus"
54+ branch : sync-docusaurus-api-reference
55+ base : main
56+ title : " docs: sync Haystack API reference on Docusaurus"
57+ add-paths : |
58+ docs-website/reference/haystack-api
59+ body : |
60+ This PR syncs the Haystack API reference on Docusaurus. Just approve and merge it.
You can’t perform that action at this time.
0 commit comments