Skip to content

Commit

Permalink
update beats: avoid failing if no files have changed (#6677) (#7181)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e86049)

Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
mergify[bot] and v1v authored Feb 2, 2022
1 parent 088c1e7 commit 75dd713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/scripts/update-beats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ 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 \
git add --ignore-errors go.mod go.sum NOTICE.txt \
.go-version docs/version.asciidoc \
docs/fields.asciidoc include/fields.go x-pack/apm-server/include/fields.go

find . -maxdepth 2 -name Dockerfile -exec git add {} \;

git diff --staged --quiet || git commit -m "$COMMIT_MESSAGE"
Expand Down

0 comments on commit 75dd713

Please sign in to comment.