File tree Expand file tree Collapse file tree 6 files changed +36
-90
lines changed Expand file tree Collapse file tree 6 files changed +36
-90
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- deploy/*
7
+ pull_request :
8
+ branches :
9
+ - deploy/*
7
10
8
11
env :
9
12
HEAD_BRANCH : ${{ github.head_ref || github.ref_name }}
@@ -25,12 +28,32 @@ jobs:
25
28
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26
29
with :
27
30
ref : ' release/${{ env.VERSION }}'
31
+ fetch-depth : 0
32
+ fetch-tags : ' true'
33
+
34
+ - name : Get Testnet Latest Tag
35
+ if : ${{ env.NETWORK == 'testnet' }}
36
+ run : |
37
+ echo "LATESTTAG=$(git describe --tags --match "*testnet*" --abbrev=0)" >> $GITHUB_ENV
38
+
39
+ - name : Get Mainnet Latest Tag
40
+ if : ${{ env.NETWORK == 'mainnet' }}
41
+ run : |
42
+ echo "LATESTTAG=$(git describe --tags --match "*mainnet*" --abbrev=0)" >> $GITHUB_ENV
28
43
29
44
- name : Reset promotion branch
30
45
run : |
31
46
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH}
32
47
git reset --hard ${HEAD_BRANCH}
33
48
49
+ - name : Generate Release note
50
+ id : template
51
+ uses : heinrichreimer/action-github-changelog-generator@e60b5a2bd9fcd88dadf6345ff8327863fb8b490f # v2.4.0
52
+ with :
53
+ token : ${{ secrets.GITHUB_TOKEN }}
54
+ sinceTag : ${{ env.LASTESTTAG}}
55
+ headerLabel : ' ## Changes log of ${{ env.VERSION }} release'
56
+
34
57
- name : Create Pull Request
35
58
id : cpr
36
59
uses : peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 7
7
types :
8
8
- closed
9
9
10
+ permissions :
11
+ contents : write
12
+ pull-requests : write
13
+
10
14
env :
11
15
HEAD_BRANCH : ${{ github.head_ref || github.ref_name }}
12
16
RELEASE_BRANCH : ${{ github.event.pull_request.base.ref}}
Original file line number Diff line number Diff line change 10
10
env :
11
11
HEAD_BRANCH : ${{ github.head_ref || github.ref_name }}
12
12
13
+ permissions :
14
+ contents : write
15
+ pull-requests : write
16
+
13
17
jobs :
14
18
create-release-tag :
15
19
runs-on : ubuntu-latest
24
28
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25
29
with :
26
30
ref : ${{ env.NETWORK }}
31
+ fetch-depth : 0
32
+ fetch-tags : ' true'
27
33
28
34
- name : Set Mainnet Tag
29
35
if : ${{ env.NETWORK == 'mainnet' }}
@@ -38,12 +44,12 @@ jobs:
38
44
- name : Get Testnet Latest Tag
39
45
if : ${{ env.NETWORK == 'testnet' }}
40
46
run : |
41
- echo "LATEST_TAG =$(git describe --tags --match "*testnet*" --abbrev=0)" >> $GITHUB_ENV
47
+ echo "LATESTTAG =$(git describe --tags --match "*testnet*" --abbrev=0)" >> $GITHUB_ENV
42
48
43
49
- name : Get Mainnet Latest Tag
44
50
if : ${{ env.NETWORK == 'mainnet' }}
45
51
run : |
46
- echo "LATEST_TAG =$(git describe --tags --match "*mainnet*" --abbrev=0)" >> $GITHUB_ENV
52
+ echo "LATESTTAG =$(git describe --tags --match "*mainnet*" --abbrev=0)" >> $GITHUB_ENV
47
53
48
54
- name : Create release
49
55
env :
54
60
--repo "$GITHUB_REPOSITORY" \
55
61
--title "${{ env.NETWORK }} release ${{ env.VERSION }}" \
56
62
--target "${{ env.NETWORK }}" \
57
- --notes-start-tag "${{ env.LATEST_TAG }}" \
63
+ --notes-start-tag "${{ env.LATESTTAG }}" \
58
64
--generate-notes
You can’t perform that action at this time.
0 commit comments