File tree 2 files changed +38
-9
lines changed
2 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -110,16 +110,30 @@ jobs:
110
110
name : Post Release
111
111
needs : release
112
112
runs-on : ubuntu-latest
113
- permissions :
114
- contents : write
115
- env :
116
- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
117
113
steps :
114
+ - name : Get token
115
+ id : get_token
116
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
117
+ with :
118
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
119
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
120
+ permissions : >-
121
+ {
122
+ "contents": "write",
123
+ "pull_requests": "write"
124
+ }
125
+ repositories : >-
126
+ ["apm-agent-android"]
127
+
118
128
- uses : actions/checkout@v4
119
129
with :
120
130
ref : ${{ inputs.branch_specifier || 'main' }}
121
- token : ${{ env.GITHUB_TOKEN }}
131
+ token : ${{ steps.get_token.outputs.token }}
132
+
122
133
- uses : elastic/oblt-actions/git/setup@v1
134
+ with :
135
+ github-token : ${{ steps.get_token.outputs.token }}
136
+
123
137
- uses : ./.github/actions/setup
124
138
- if : ${{ ! inputs.dry_run }}
125
139
run : ./gradlew postDeploy -Prelease=true -Pversion_override=${{ inputs.version_override_specifier || '' }}
Original file line number Diff line number Diff line change 9
9
- closed
10
10
11
11
permissions :
12
- contents : write
12
+ contents : read
13
13
14
14
jobs :
15
15
if_merged_postDeploy :
16
16
if : github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'post-release/')
17
17
runs-on : ubuntu-latest
18
18
name : Create PR to update version branch
19
- env :
20
- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
21
19
steps :
20
+ - name : Get token
21
+ id : get_token
22
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
23
+ with :
24
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
25
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
26
+ permissions : >-
27
+ {
28
+ "contents": "write",
29
+ "pull_requests": "write"
30
+ }
31
+ repositories : >-
32
+ ["apm-agent-android"]
33
+
22
34
- uses : actions/checkout@v4
23
35
with :
24
36
fetch-depth : 0
37
+ token : ${{ steps.get_token.outputs.token }}
25
38
26
39
- uses : elastic/oblt-actions/git/setup@v1
40
+ with :
41
+ github-token : ${{ steps.get_token.outputs.token }}
27
42
28
43
- uses : actions-ecosystem/action-regex-match@v2
29
44
id : major-version
39
54
git push -u origin $CONFLICT_RESOLUTION_BRANCH
40
55
gh pr create --base ${{ env.BASE_BRANCH }} --title 'Merge main into version branch' --body 'Created by Github action :robot:' --reviewer elastic/apm-agent-android
41
56
env:
42
- GH_TOKEN: ${{ env.GITHUB_TOKEN }}
57
+ GH_TOKEN: ${{ steps.get_token.outputs.token }}
43
58
BASE_BRANCH: "${{ steps.major-version.outputs.group1 }}.x"
You can’t perform that action at this time.
0 commit comments