Skip to content

Commit 3382356

Browse files
anakin87dfokina
andauthored
docs: promote Docusaurus docs in promote_unstable_docs workflow (#9994)
* docs: promote Docusaurus docs in promote_unstable_docs workflow * retry * remove temp settings * Update .github/workflows/promote_unstable_docs.yml Co-authored-by: Daria Fokina <daria.fokina@deepset.ai> --------- Co-authored-by: Daria Fokina <daria.fokina@deepset.ai>
1 parent 1c79408 commit 3382356

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/promote_unstable_docs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,23 @@ jobs:
3636
RDME_API_KEY: ${{ secrets.README_API_KEY }}
3737
run: |
3838
python ./.github/utils/promote_unstable_docs.py --version ${{ steps.version.outputs.version }}
39+
40+
- name: Promote unstable docs for Docusaurus
41+
run: |
42+
git checkout main
43+
python ./.github/utils/promote_unstable_docs_docusaurus.py --version ${{ steps.version.outputs.version }}
44+
45+
- name: Create Pull Request with Docusaurus docs updates
46+
uses: peter-evans/create-pull-request@v7
47+
with:
48+
token: ${{ secrets.HAYSTACK_BOT_TOKEN }}
49+
commit-message: "Promote unstable docs for Haystack ${{ steps.version.outputs.version }}"
50+
branch: promote-unstable-docs-${{ steps.version.outputs.version }}
51+
base: main
52+
title: "docs: promote unstable docs for Haystack ${{ steps.version.outputs.version }}"
53+
add-paths: |
54+
docs-website
55+
body: |
56+
This PR promotes the unstable docs for Haystack ${{ steps.version.outputs.version }} to stable.
57+
It is expected to run at the time of the release.
58+
You can inspect the docs preview and merge it. There should now be only one unstable version representing the next (main) branch.

0 commit comments

Comments
 (0)