File tree Expand file tree Collapse file tree 4 files changed +26
-16
lines changed Expand file tree Collapse file tree 4 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,25 @@ conditions:
63
63
image : golang
64
64
tag : ' {{ source "latestGoVersion" }}'
65
65
sourceid : latestGoVersion
66
- is :
66
+ # # As long as there is a bug see https://github.com/updatecli/updatecli/issues/1849
67
+ # # Let's use the shell kind rather than the file kind.
68
+ # # When fixed then uncomment the code and remove is-already-updated
69
+ # is:
70
+ # name: Is version '{{ source "latestGoVersion" }}' not updated in 'go/Makefile.common'?
71
+ # disablesourceinput: true
72
+ # kind: file
73
+ # spec:
74
+ # file: go/Makefile.common
75
+ # line: 5
76
+ # content: VERSION := {{ source `latestGoVersion` }}
77
+ # failwhen: true
78
+ is-already-updated :
67
79
name : Is version '{{ source "latestGoVersion" }}' not updated in 'go/Makefile.common'?
68
80
disablesourceinput : true
69
- kind : file
81
+ kind : shell
70
82
spec :
71
- file : go/Makefile.common
72
- line : 5
73
- content : VERSION := {{ source `latestGoVersion` }}
74
- failwhen : true
83
+ command : grep 'VERSION := {{ source `latestGoVersion` }}' go/Makefile.common && exit 1 || exit 0
84
+ failwhen : false
75
85
76
86
targets :
77
87
update-go-version :
Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : read
11
11
12
- env :
13
- JOB_URL : " ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
14
-
15
12
jobs :
16
13
bump :
17
14
runs-on : ubuntu-latest
26
23
vaultUrl : ${{ secrets.VAULT_ADDR }}
27
24
vaultRoleId : ${{ secrets.VAULT_ROLE_ID }}
28
25
vaultSecretId : ${{ secrets.VAULT_SECRET_ID }}
29
- notifySlackChannel : " #ingest-notifications"
30
- messageIfFailure : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @agent-team please look what's going on <${{ env.JOB_URL }}|here>"
Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : read
11
11
12
- env :
13
- JOB_URL : " ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
14
-
15
12
jobs :
16
13
bump :
17
14
runs-on : ubuntu-latest
25
22
vaultUrl : ${{ secrets.VAULT_ADDR }}
26
23
vaultRoleId : ${{ secrets.VAULT_ROLE_ID }}
27
24
vaultSecretId : ${{ secrets.VAULT_SECRET_ID }}
28
- notifySlackChannel : " #ingest-notifications"
29
- messageIfFailure : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @agent-team please look what's going on <${{ env.JOB_URL }}|here>"
Original file line number Diff line number Diff line change 7
7
go-minor :
8
8
description : ' What Go minor version ([0-9]+.[0.9]+)'
9
9
required : true
10
+ messageIfFailure :
11
+ description : ' Vault secret ID'
12
+ required : false
13
+ default : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, @agent-team please look what's going on <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
14
+ notifySlackChannel :
15
+ description : ' Vault secret ID'
16
+ required : false
17
+ default : " #ingest-notifications"
10
18
vaultUrl :
11
19
description : ' Vault URL'
12
20
required : true
30
38
vaultRoleId : ${{ inputs.vaultRoleId }}
31
39
vaultSecretId : ${{ inputs.vaultSecretId }}
32
40
pipeline : ./.buildkite/bump-golang.yml
41
+ notifySlackChannel : ${{ inputs.notifySlackChannel }}
42
+ messageIfFailure : ${{ inputs.messageIfFailure }}
33
43
env :
34
44
BRANCH : ${{ inputs.branch }}
35
45
GO_MINOR : ${{ inputs.go-minor }}
You can’t perform that action at this time.
0 commit comments