Skip to content

Commit 08e8b3a

Browse files
committed
file condition
1 parent ffaf20f commit 08e8b3a

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.ci/updatecli/bump-logstash-version.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ actions:
2727
### What
2828
Update logstash version
2929
30+
conditions:
31+
lockfile_exists:
32+
name: Check if lockfile exists
33+
kind: file
34+
disablesourceinput: true
35+
spec:
36+
file: Gemfile.jruby-3.1.lock.release
37+
3038
targets:
3139
update_logstash_version:
3240
name: Update logstash version in versions.yml
@@ -54,14 +62,6 @@ targets:
5462
file: Gemfile.jruby-3.1.lock.release
5563
matchpattern: 'logstash-core \(= [0-9]+\.[0-9]+\.[0-9]+'
5664
replacepattern: 'logstash-core (= {{ requiredEnv "LOGSTASH_VERSION" }}'
57-
forcecreate: false
58-
conditions:
59-
check_lockfile_exists:
60-
name: Check if lockfile exists
61-
kind: shell
62-
disablesourceinput: true
63-
spec:
64-
command: test -f Gemfile.jruby-3.1.lock.release
6565

6666
update_gemfile_lock_spec:
6767
name: Update logstash-core spec in lockfile
@@ -70,12 +70,4 @@ targets:
7070
spec:
7171
file: Gemfile.jruby-3.1.lock.release
7272
matchpattern: 'logstash-core \([0-9]+\.[0-9]+\.[0-9]+-java\)'
73-
replacepattern: 'logstash-core ({{ requiredEnv "LOGSTASH_VERSION" }}-java)'
74-
forcecreate: false
75-
conditions:
76-
check_lockfile_exists:
77-
name: Check if lockfile exists
78-
kind: shell
79-
disablesourceinput: true
80-
spec:
81-
command: test -f Gemfile.jruby-3.1.lock.release
73+
replacepattern: 'logstash-core ({{ requiredEnv "LOGSTASH_VERSION" }}-java)'

0 commit comments

Comments
 (0)