File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 11
11
description : Branch to release (prepare-release-X.X)
12
12
required : true
13
13
type : string
14
+ pat-token :
15
+ description : PAT token (with workflow permissions)
14
16
15
17
jobs :
16
18
dispatch-release :
25
27
submodules : false
26
28
ref : release-workflow
27
29
28
- - uses : actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1 v1.11.6
29
- id : app-token
30
- name : Generate app token
31
- with :
32
- app-id : ${{ vars.GRIDSUITE_ACTIONS_APPID }}
33
- private-key : ${{ secrets.VERSIONBUMP_GHAPP_PRIVATE_KEY }}
34
- owner : gridsuite
35
-
36
- - name : Get GitHub App User ID
37
- id : get-user-id
38
- run : |
39
- echo $(gh api "/users/${RUNGHA_APP_SLUG}[bot]")
40
- echo "user-id=$(gh api "/users/${RUNGHA_APP_SLUG}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
41
- env :
42
- GH_TOKEN : ${{ steps.app-token.outputs.token }}
43
- RUNGHA_APP_SLUG : ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
44
-
45
- - name : Setup git user
46
- run : |
47
- git config --global user.name "${RUNGHA_APP_SLUG}[bot]"
48
- git config --global user.email "${RUNGHA_USER_ID}+${RUNGHA_APP_SLUG}[bot]@users.noreply.github.com"
49
- env :
50
- RUNGHA_APP_SLUG : ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
51
- RUNGHA_USER_ID : ${{ steps.get-user-id.outputs.user-id }} # just for defense against script injection
52
-
53
30
- name : Load repo list from file or input
54
31
id : load_repos
55
32
run : |
81
58
82
59
done <<< "${{ steps.load_repos.outputs.list }}"
83
60
env :
84
- GH_TOKEN : ${{ steps.app-token.outputs. token }}
61
+ GH_TOKEN : ${{ github.event.inputs.pat- token }}
You can’t perform that action at this time.
0 commit comments