Skip to content

Commit 70c7f82

Browse files
authored
Merge pull request #578 from redis/DOC-3970-fix
Create PR for changes
2 parents d0ebfaa + c2c8f04 commit 70c7f82

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/redis_docs_sync.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
3333
run: |-
3434
RELEASE="${{ github.event.inputs.release }}"
35-
35+
BRANCH="redis_docs_sync_${RELEASE}"
36+
3637
# Generate modules-api-ref.md
3738
gh repo clone redis/redis
3839
pushd redis
@@ -41,6 +42,8 @@ jobs:
4142
utils/generate-module-api-doc.rb > generated-modules-api-ref.md
4243
popd
4344
45+
git checkout -b "${BRANCH}"
46+
4447
mv redis/generated-modules-api-ref.md content/develop/reference/modules/modules-api-ref.md
4548
4649
# Apply frontmatter patch
@@ -55,5 +58,11 @@ jobs:
5558
git config user.email "177626021+redisdocsapp[bot]@users.noreply.github.com"
5659
git config user.name "redisdocsapp[bot]"
5760
git commit -m "Update modules-api-ref.md for release ${RELEASE}"
58-
git push origin main
61+
git push origin "${BRANCH}"
62+
63+
gh pr create \
64+
--body "redis docs sync ${RELEASE}" \
65+
--title "redis docs sync ${RELEASE}" \
66+
--head "$BRANCH" \
67+
--base "main"
5968
fi

0 commit comments

Comments
 (0)