File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 23
23
(startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))
24
24
25
25
steps :
26
+ - name : Set GitHub token
27
+ run : |
28
+ echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
29
+
30
+ - name : Checkout repository
31
+ uses : actions/checkout@v3
32
+ with :
33
+ ref : ${{ github.event.pull_request.head.ref }}
34
+ token : ${{ env.GH_TOKEN }}
35
+
26
36
- name : Extract version from release branch
27
37
if : startsWith(github.event.pull_request.head.ref, 'release/')
28
38
run : |
37
47
VERSION=${BRANCH_NAME#hotfix/}
38
48
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
39
49
40
- - name : Set GitHub CLI token
41
- run : |
42
- echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
43
-
44
50
- name : Create release
45
51
env :
46
52
RELEASE_TAG : " ${{ env.TAG_PREFIX }}${{ env.RELEASE_VERSION }}"
You can’t perform that action at this time.
0 commit comments