19
19
steps :
20
20
- id : generate
21
21
name : Generate matrix
22
- uses : elastic/apm-pipeline-library/.github/ actions/elastic-stack-snapshot- branches@current
22
+ uses : elastic/oblt- actions/elastic/active- branches@v1
23
23
with :
24
24
exclude-branches : ' 7.17,main'
25
25
- uses : actions/github-script@v7
@@ -41,11 +41,23 @@ jobs:
41
41
42
42
- uses : actions/checkout@v4
43
43
44
- -
uses :
elastic/oblt-actions/updatecli/[email protected]
44
+ - name : Get token
45
+ id : get_token
46
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
45
47
with :
46
- command : --experimental apply --config .ci/bump-golang.yml
48
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
49
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
50
+ permissions : >-
51
+ {
52
+ "contents": "write",
53
+ "pull_requests": "write"
54
+ }
55
+
56
+ - uses : elastic/oblt-actions/updatecli/run@v1
57
+ with :
58
+ command : --experimental apply --config .ci/updatecli/bump-golang.yml --values .ci/updatecli/values.d/scm.yml
47
59
env :
48
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
60
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
49
61
GITHUB_BRANCH : ' main'
50
62
GITHUB_LABELS : ${{ needs.labels.outputs.backports }}
51
63
@@ -56,11 +68,11 @@ jobs:
56
68
with :
57
69
ref : ' 7.17'
58
70
59
- - uses : elastic/oblt-actions/updatecli/run@v1.9.1
71
+ - uses : elastic/oblt-actions/updatecli/run@v1
60
72
with :
61
- command : --experimental apply --config .ci/bump-golang.yml
73
+ command : --experimental apply --config .ci/updatecli/ bump-golang.yml --values .ci/updatecli/values.d/scm .yml
62
74
env :
63
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
75
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
64
76
GITHUB_BRANCH : ' 7.17'
65
77
GITHUB_LABELS : ' backport-skip'
66
78
@@ -70,11 +82,11 @@ jobs:
70
82
if : always()
71
83
steps :
72
84
- id : check
73
- uses : elastic/apm-pipeline-library/.github/ actions/check-dependent-jobs@current
85
+ uses : elastic/oblt- actions/check-dependent-jobs@v1
74
86
with :
75
- needs : ${{ toJSON(needs) }}
87
+ jobs : ${{ toJSON(needs) }}
76
88
- if : ${{ steps.check.outputs.isSuccess == 'false' }}
77
- uses : elastic/oblt-actions/slack/send@v1.9.1
89
+ uses : elastic/oblt-actions/slack/send@v1
78
90
with :
79
91
bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
80
92
channel-id : " #apm-server"
0 commit comments