File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,19 @@ jobs:
24
24
run : |
25
25
LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
26
26
if [[ ${LATEST_COMMIT_MSG} == *"[release]"* ]]; then
27
- echo "IS_RELEASE=true" >> $GITHUB_ENV
28
- echo "LATEST_COMMIT_MSG=${LATEST_COMMIT_MSG}" >> $GITHUB_ENV
27
+ echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
28
+ echo "LATEST_COMMIT_MSG=${LATEST_COMMIT_MSG}" >> $GITHUB_OUTPUT
29
29
else
30
- echo "IS_RELEASE=false" >> $GITHUB_ENV
30
+ echo "IS_RELEASE=false" >> $GITHUB_OUTPUT
31
31
fi
32
32
33
33
release :
34
34
name : Release
35
35
runs-on : ubuntu-latest
36
- if : ${{ env.IS_RELEASE == 'true' }}
36
+ needs : [check-commit]
37
+ if : ${{ needs.check-commit.outputs.IS_RELEASE == 'true' }}
38
+ env :
39
+ LATEST_COMMIT_MSG=${{ needs.check-commit.outputs.LATEST_COMMIT_MSG }}
37
40
steps :
38
41
- name : Check out Git repository
39
42
uses : actions/checkout@v4
49
52
50
53
- name : Bump version
51
54
run : |
52
- LATEST_COMMIT_MSG=${{ env.LATEST_COMMIT_MSG }}
53
-
54
55
echo "Extract the latest tag version"
55
56
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
56
57
You can’t perform that action at this time.
0 commit comments