-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #463 from salesforce/wjh/streamline-release-changes
Suggested changes for CI and release automation
- Loading branch information
Showing
5 changed files
with
59 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
git add --renormalize . | ||
|
||
if (( "$(git diff HEAD | wc -l)" != 0 )); then | ||
summary=$(cat << EOF | ||
### Detected uncommitted changes from generated files | ||
Use \`npm run precommit\` to ensure that all generated content is up-to-date. | ||
\`\`\`shell | ||
$(git diff HEAD) | ||
\`\`\` | ||
EOF | ||
) | ||
if [ -n "$GITHUB_STEP_SUMMARY" ]; then | ||
echo "$summary" >> "$GITHUB_STEP_SUMMARY" | ||
fi | ||
git --no-pager diff HEAD | ||
exit 1 | ||
fi |