20
20
- name : Checkout release tag
21
21
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
22
with :
23
+ persist-credentials : false
23
24
ref : ${{ github.event.workflow_run.head_branch }}
24
25
25
26
- name : Set up Python
66
67
res = await github.rest.repos.createRelease({
67
68
owner: context.repo.owner,
68
69
repo: context.repo.repo,
69
- name: '${{ github.ref_name }} -rc',
70
- tag_name: '${{ github.ref }}' ,
70
+ name: process.env.REF_NAME + ' -rc',
71
+ tag_name: process.env.REF ,
71
72
body: fs.readFileSync('changelog', 'utf8'),
72
73
});
73
74
81
82
});
82
83
});
83
84
return res.data.id
85
+ env :
86
+ REF_NAME : ${{ github.ref_name }}
87
+ REF : ${{ github.ref }}
84
88
85
89
release :
86
90
name : Release
@@ -108,6 +112,10 @@ jobs:
108
112
github.rest.repos.updateRelease({
109
113
owner: context.repo.owner,
110
114
repo: context.repo.repo,
111
- release_id: '${{ needs.candidate_release.outputs.release_id }}' ,
112
- name: '${{ github.ref_name }}' ,
115
+ release_id: process.env.RELEASE_ID ,
116
+ name: process.env.REF_NAME ,
113
117
})
118
+
119
+ env :
120
+ REF_NAME : ${{ github.ref_name }}
121
+ RELEASE_ID : ${{ needs.candidate_release.outputs.release_id }}
0 commit comments