File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ permissions:
1313 contents : read
1414
1515env :
16- SLACK_CHANNEL : " #apm-server-test-release"
17-
16+ JOB_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
17+ SLACK_CHANNEL : " #apm-server"
18+
1819jobs :
1920 run-minor :
2021 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ permissions:
1919env :
2020 JOB_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
2121 SLACK_CHANNEL : " #apm-server"
22- GH_TOKEN : ${{ secrets.APM_SERVER_RELEASE_TOKEN }}
2322
2423jobs :
2524 prepare :
@@ -54,13 +53,25 @@ jobs:
5453 # Use the makefile in the given release branch.
5554 ref : ${{ env.RELEASE_BRANCH }}
5655
56+ - name : Get token
57+ id : get_token
58+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
59+ with :
60+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
61+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
62+ permissions : >-
63+ {
64+ "contents": "write",
65+ "pull_requests": "write"
66+ }
67+
5768 # Required to use a service account, otherwise PRs created by
5869 # GitHub bot won't trigger any CI builds.
5970 # See https://github.com/peter-evans/create-pull-request/issues/48#issuecomment-537478081
6071 - name : Configure git user
6172 uses : elastic/oblt-actions/git/setup@v1
6273 with :
63- github-token : ${{ env.GH_TOKEN }}
74+ github-token : ${{ steps.get_token.outputs.token }}
6475
6576 - name : Import GPG key
6677 uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
7182 git_commit_gpgsign : true
7283
7384 - run : make patch-release
85+ env :
86+ GH_TOKEN : ${{ steps.get_token.outputs.token }}
7487
7588 - if : success()
7689 uses : elastic/oblt-actions/slack/send@v1
You can’t perform that action at this time.
0 commit comments