21
21
- name : Checkout release tag
22
22
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23
23
with :
24
+ persist-credentials : false
24
25
ref : ${{ github.event.workflow_run.head_branch }}
25
26
26
27
- name : Set up Python
67
68
res = await github.rest.repos.createRelease({
68
69
owner: context.repo.owner,
69
70
repo: context.repo.repo,
70
- name: '${{ github.ref_name }} -rc',
71
- tag_name: '${{ github.ref }}' ,
71
+ name: process.env.REF_NAME + ' -rc',
72
+ tag_name: process.env.REF ,
72
73
body: 'Release waiting for review...',
73
74
});
74
75
82
83
});
83
84
});
84
85
return res.data.id
86
+ env :
87
+ REF_NAME : ${{ github.ref_name }}
88
+ REF : ${{ github.ref }}
89
+
85
90
86
91
release :
87
92
name : Release
@@ -106,13 +111,15 @@ jobs:
106
111
- name : Finalize GitHub release
107
112
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
108
113
with :
109
- script : |
114
+ script : | # zizmor: ignore[template-injection]
110
115
github.rest.repos.updateRelease({
111
116
owner: context.repo.owner,
112
117
repo: context.repo.repo,
113
118
release_id: '${{ needs.candidate_release.outputs.release_id }}',
114
- name: '${{ github.ref_name }}' ,
119
+ name: process.env.REF_NAME ,
115
120
body: 'See [CHANGELOG.md](https://github.com/' +
116
121
context.repo.owner + '/' + context.repo.repo +
117
- '/blob/${{ github.ref_name }} /CHANGELOG.md) for details.'
122
+ '/blob/' + process.env.REF_NAME + ' /CHANGELOG.md) for details.'
118
123
})
124
+ env :
125
+ REF_NAME : ${{ github.ref_name }}
0 commit comments