-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.x] chore: update-beats goal to bump the go version (backport #5778) (
#5811) * chore: update-beats goal to bump the go version (#5778) (cherry picked from commit bcd5bb6) # Conflicts: # .ci/scripts/update-beats.sh # README.md * fix merge conflict Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> Co-authored-by: Andrew Wilkins <axw@elastic.co>
- Loading branch information
1 parent
613849d
commit dc2d955
Showing
4 changed files
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This script is executed by the automation we are putting in place | ||
# and it requires the git add/commit commands. | ||
# | ||
set -euo pipefail | ||
|
||
make update-beats | ||
COMMIT_MESSAGE="Update to elastic/beats@$(go list -m -f {{.Version}} github.com/elastic/beats/... | cut -d- -f3)" | ||
|
||
git checkout -b "update-beats-$(date "+%Y%m%d%H%M%S")" | ||
git add go.mod go.sum NOTICE.txt .go-version docs/version.asciidoc | ||
find . -maxdepth 2 -name Dockerfile -exec git add {} \; | ||
|
||
git diff --staged --quiet || git commit -m "$COMMIT_MESSAGE" | ||
git --no-pager log -1 | ||
|
||
echo "You can now push and create a Pull Request" |
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