23
23
24
24
- name : Ignore if not a release PR
25
25
id : early
26
+ env :
27
+ TITLE : ${{ github.event.pull_request.title }}
26
28
run : |
27
29
status="skip"
28
- if echo "${{ github.event.pull_request.title }}" | grep -q "chore(release)"; then
30
+ if echo ${TITLE} | grep -q "chore(release)"; then
29
31
status="continue"
30
32
fi
31
33
echo "status=$status" >> $GITHUB_OUTPUT
@@ -39,10 +41,12 @@ jobs:
39
41
- uses : actions/checkout@v4.1.1
40
42
41
43
- name : Get release verison from PR title
44
+ env :
45
+ TITLE : ${{ github.event.pull_request.title }}
42
46
run : |
43
47
# Assuming release PR follows pattern: chore(release): publish vA.B.C
44
48
# Split PR title by space, and take 3rd word
45
- VERSION=$(echo "${{ github.event.pull_request.title } }" | cut -d ' ' -f 3)
49
+ VERSION=$(echo "${TITLE }" | cut -d ' ' -f 3)
46
50
# Strip "v" from version
47
51
VERSION=$(echo $VERSION | sed -e 's/^v//')
48
52
echo "VERSION=$VERSION" >> $GITHUB_ENV
@@ -146,10 +150,12 @@ jobs:
146
150
- uses : actions/checkout@v4.1.1
147
151
148
152
- name : Get release verison from PR title
153
+ env :
154
+ TITLE : ${{ github.event.pull_request.title }}
149
155
run : |
150
156
# Assuming release PR follows pattern: chore(release): publish vA.B.C
151
157
# Split PR title by space, and take 3rd word
152
- VERSION=$(echo "${{ github.event.pull_request.title } }" | cut -d ' ' -f 3)
158
+ VERSION=$(echo "${TITLE }" | cut -d ' ' -f 3)
153
159
# Strip "v" from version
154
160
VERSION=$(echo $VERSION | sed -e 's/^v//')
155
161
echo "VERSION=$VERSION" >> $GITHUB_ENV
0 commit comments