-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclang-tools-static-binaries.yaml
54 lines (49 loc) · 1.32 KB
/
clang-tools-static-binaries.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Bump clang-tools static binaries version
scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"
sources:
lastVersion:
kind: githubrelease
name: Get the latest clang-tools static binaries version
spec:
owner: "cpp-linter"
repository: "clang-tools-static-binaries"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: latest
transformers:
- addprefix: "master-"
conditions:
checkIfReleaseIsAvailable:
sourceid: lastVersion
kind: shell
spec:
command: bash ./updatecli/check-tag.sh # source input value passed as argument
targets:
updateVersion:
name: "Update clang-tools-pip"
sourceid: lastVersion
scmid: github
kind: shell
spec:
command: bash {{ "GITHUB_WORKSPACE" }}/updatecli/update-tag.sh
actions:
default:
kind: github/pullrequest
scmid: default
title: Bump clang-tools-static-binaries version to {{ source "lastVersion" }}
spec:
labels:
- dependencies
- clang-tools-static-binaries