File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 32
32
GH_TOKEN : ${{ steps.generate-token.outputs.token }}
33
33
run : |-
34
34
RELEASE="${{ github.event.inputs.release }}"
35
-
35
+ BRANCH="redis_docs_sync_${RELEASE}"
36
+
36
37
# Generate modules-api-ref.md
37
38
gh repo clone redis/redis
38
39
pushd redis
41
42
utils/generate-module-api-doc.rb > generated-modules-api-ref.md
42
43
popd
43
44
45
+ git checkout -b "${BRANCH}"
46
+
44
47
mv redis/generated-modules-api-ref.md content/develop/reference/modules/modules-api-ref.md
45
48
46
49
# Apply frontmatter patch
55
58
git config user.email "177626021+redisdocsapp[bot]@users.noreply.github.com"
56
59
git config user.name "redisdocsapp[bot]"
57
60
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"
59
68
fi
You can’t perform that action at this time.
0 commit comments