Commit 4df3097 authored Sep 18, 2024 · 8 / 8 · Verified
1 parent d4607cc commit 4df3097 Copy full SHA for 4df3097
File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 19
19
steps :
20
20
- uses : actions/checkout@v4
21
21
22
+ - name : Get token
23
+ id : get_token
24
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
25
+ with :
26
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
27
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
28
+ permissions : >-
29
+ {
30
+ "contents": "write",
31
+ "pull_requests": "write"
32
+ }
33
+
22
34
- uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
23
35
with :
24
36
registry : ghcr.io
@@ -29,13 +41,13 @@ jobs:
29
41
with :
30
42
command : --experimental compose diff
31
43
env :
32
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
44
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
33
45
34
46
- uses : elastic/oblt-actions/updatecli/run@v1
35
47
with :
36
48
command : --experimental compose apply
37
49
env :
38
- GITHUB_TOKEN : ${{ secrets.UPDATECLI_GH_TOKEN }}
50
+ GITHUB_TOKEN : ${{ steps.get_token.outputs.token }}
39
51
40
52
- if : failure()
41
53
uses : elastic/oblt-actions/slack/send@v1
You can’t perform that action at this time.
0 commit comments