File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 17
17
upload-porting-guide :
18
18
name : Extract the porting guide
19
19
runs-on : ubuntu-latest
20
+ environment : github-bot
20
21
env :
21
22
GIT_BRANCH : " release/porting-guide-${{ inputs.ansible-version }}"
22
23
ANSIBLE_VERSION_FULL : ${{ inputs.ansible-version }}
28
29
run : echo "ANSIBLE_VERSION_MAJOR=${ANSIBLE_VERSION_FULL%%.*}" >> "${GITHUB_ENV}"
29
30
shell : bash --noprofile --norc -O extglob -eEuo pipefail {0}
30
31
32
+ - name : Generate temp GITHUB_TOKEN
33
+ id : create_token
34
+ uses : actions/create-github-app-token@v2
35
+ with :
36
+ app-id : ${{ secrets.BOT_APP_ID }} # From github-bot environment
37
+ private-key : ${{ secrets.BOT_APP_KEY }} # From github-bot environment
38
+
31
39
- name : Check out this repo src
32
40
uses : actions/checkout@v4
41
+ with :
42
+ token : ${{ steps.create_token.outputs.token }}
43
+
33
44
- name : Check out ansible-build-data
34
45
uses : actions/checkout@v4
35
46
with :
@@ -59,11 +70,13 @@ jobs:
59
70
git commit -m "${CI_COMMIT_MESSAGE}"
60
71
61
72
- name : Push to the repo
73
+ env :
74
+ GITHUB_TOKEN : ${{ steps.create_token.outputs.token }}
62
75
run : git push origin "${GIT_BRANCH}"
63
76
64
77
- name : Create the porting guide PR as draft
65
78
env :
66
- GITHUB_TOKEN : ${{ github .token }}
79
+ GITHUB_TOKEN : ${{ steps.create_token.outputs .token }}
67
80
PR_BODY_MESSAGE : |-
68
81
##### SUMMARY
69
82
You can’t perform that action at this time.
0 commit comments