We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d78fb commit c7f7591Copy full SHA for c7f7591
docs-generation/create-docs-pr.sh
@@ -13,9 +13,12 @@ fi
13
git config user.name "docs-generator[bot]"
14
git config user.email "docs-generator[bot]@amazon.com"
15
16
-# Create branch and push
17
-git checkout -b "$BRANCH_NAME"
18
-git add .
+# Create branch, pull if needed (for updating existing docs PRs), and push
+git checkout -B "$BRANCH_NAME"
+if git ls-remote --exit-code --heads origin $BRANCH_NAME; then
19
+ git pull origin $BRANCH_NAME
20
+fi
21
+git add docs
22
git commit -m "Update docs based on PR #$PR_NUMBER
23
24
Auto-generated by Q"
0 commit comments