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 106768f commit 4a66c75Copy full SHA for 4a66c75
docs-generation/create-docs-pr.sh
@@ -1,17 +1,15 @@
1
#!/bin/bash
2
set -e
3
4
-# Ensure we have changes to merge
5
-if [ -z "$(git status --porcelain -- . ':!pr-contents.txt')" ]; then
6
- echo "No changes to commit"
7
- exit 0
8
-fi
9
-
10
git config user.name "docs-generator[bot]"
11
git config user.email "docs-generator[bot]@amazon.com"
12
13
# Push (branch should have already been created in update-docs.sh)
14
git add docs
+if git diff --cached --quiet; then
+ echo "No changes to commit"
+ exit 0
+fi
15
git commit -m "Update docs based on PR #$PR_NUMBER
16
17
Auto-generated by Q"
0 commit comments