Skip to content

Commit 6e73d41

Browse files
authored
Merge pull request #475 from gounthar/update-compress-api
chore(updatecli): Update the compress-api plugin version
2 parents 0c5a3a1 + b0b37b1 commit 6e73d41

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update compress-api plugin version
2+
3+
scms:
4+
default:
5+
kind: github
6+
spec:
7+
user: "{{ .github.user }}"
8+
email: "{{ .github.email }}"
9+
owner: "{{ .github.owner }}"
10+
repository: "{{ .github.repository }}"
11+
token: "{{ requiredEnv .github.token }}"
12+
username: "{{ .github.username }}"
13+
branch: "{{ .github.branch }}"
14+
15+
sources:
16+
latestCompressApiVersion:
17+
kind: githubrelease
18+
spec:
19+
owner: "jenkinsci"
20+
repository: "commons-compress-api-plugin"
21+
token: "{{ requiredEnv .github.token }}"
22+
username: "{{ .github.username }}"
23+
versioning:
24+
kind: semver
25+
pattern: "latest"
26+
transformers:
27+
- trimprefix: "commons-compress-api-"
28+
29+
targets:
30+
updateRecipesYaml:
31+
name: "Update compress-api plugin version in recipes.yml"
32+
kind: file
33+
spec:
34+
file: ./plugin-modernizer-core/src/main/resources/META-INF/rewrite/recipes.yml
35+
matchPattern: "(pluginArtifactId: commons-compress-api\\n)(.*\\n)(.*pluginVersion:) .*"
36+
replacePattern: '$1$2$3 {{ source "latestCompressApiVersion" }}'
37+
sourceid: latestCompressApiVersion
38+
scmid: default
39+
40+
actions:
41+
createPullRequest:
42+
kind: github/pullrequest
43+
scmid: default
44+
title: 'Update compress-api plugin version to {{ source "latestCompressApiVersion" }}'
45+
spec:
46+
labels:
47+
- dependencies
48+
- updatecli

0 commit comments

Comments
 (0)