Skip to content

Commit

Permalink
update-beats: change condition to avoid updating if no updates (#12277)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Dec 26, 2023
1 parent 78b9b36 commit 3b2f0fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .ci/update-beats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ sources:
captureindex: 1

conditions:
is:
is-already-updated:
name: Is version 'github.com/elastic/beats@{{ source "beats" }}' not updated in 'go.mod'?
kind: file
kind: shell
disablesourceinput: true
scmid: default
spec:
file: go.mod
matchpattern: 'github\.com/elastic/beats.*-{{ source "beats" }}'
failwhen: true
command: grep {{ source "beats" }} go.mod && exit 1 || exit 0
failwhen: false

targets:
beats:
Expand All @@ -64,5 +63,4 @@ targets:
command: .ci/scripts/update-beats.sh
environments:
- name: PATH
- name: GOPATH
- name: HOME

0 comments on commit 3b2f0fe

Please sign in to comment.