File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,6 @@ jobs:
208
208
- publish-aws-lambda
209
209
runs-on : ubuntu-latest
210
210
if : ${{ ! inputs.dry_run }}
211
- permissions :
212
- contents : write
213
211
steps :
214
212
- uses : actions/checkout@v5
215
213
with :
@@ -223,9 +221,21 @@ jobs:
223
221
echo "Release notes not published yet. Sleeping 30 seconds, retrying afterwards"
224
222
sleep 30s
225
223
done
224
+
225
+ - name : Get token
226
+ id : get_token
227
+ uses : actions/create-github-app-token@v2
228
+ with :
229
+ app-id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
230
+ private-key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
231
+ owner : ${{ github.repository_owner }}
232
+ repositories : |
233
+ apm-agent-java
234
+ permission-contents : write
235
+
226
236
- name : Create GitHub Release
227
237
env :
228
- GH_TOKEN : ${{ github .token }}
238
+ GH_TOKEN : ${{ steps.get_token.outputs .token }}
229
239
run : |
230
240
gh release create ${{ env.RELEASE_VERSION_TAG }} \
231
241
--title="Release ${{ env.RELEASE_VERSION }}" \
You can’t perform that action at this time.
0 commit comments