Skip to content

Commit

Permalink
Fix for only adding modified files in release-notes-check compile scr…
Browse files Browse the repository at this point in the history
…ipt (opensearch-project#4927)

Signed-off-by: Brandon Shien <bshien@amazon.com>
  • Loading branch information
bshien authored Aug 12, 2024
1 parent 491d7e4 commit 718af7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jenkins/release-workflows/release-notes-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pipeline {
def status = sh(returnStdout: true, script: 'git status --porcelain')
if (status) {
sh """
git status --porcelain | grep '^ M' | cut -d " " -f3 | xargs git add
git add .
git commit -sm "Add consolidated release notes for ${params.RELEASE_VERSION}"
git push origin release-notes --force
gh pr create --title 'Add consolidated release notes for ${params.RELEASE_VERSION}' --body 'Add consolidated release notes for ${params.RELEASE_VERSION}' -H release-notes -B main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
release-notes-check.sh({returnStdout=true, script=git status --porcelain})
release-notes-check.sh(
git status --porcelain | grep '^ M' | cut -d " " -f3 | xargs git add
git add .
git commit -sm "Add consolidated release notes for 3.0.0"
git push origin release-notes --force
gh pr create --title 'Add consolidated release notes for 3.0.0' --body 'Add consolidated release notes for 3.0.0' -H release-notes -B main
Expand Down

0 comments on commit 718af7b

Please sign in to comment.