File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 25
25
distribution : zulu
26
26
java-version : 17
27
27
28
- # Remove old release drafts by using the curl request for the available releases with a draft flag
28
+ # Set environment variables
29
+ - name : Export Properties
30
+ id : properties
31
+ shell : bash
32
+ run : |
33
+ PROPERTIES="$(./gradlew properties --console=plain -q)"
34
+ VERSION="$(echo "$PROPERTIES" | grep "^VERSION_NAME:" | cut -f2- -d ' ')"
35
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
36
+
37
+ # Remove old release drafts by using the curl request for the available releases with a draft flag
29
38
- name : Remove Old Release Drafts
30
39
env :
31
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
48
env :
40
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
50
run : |
42
- gh release create v${{ needs.build.outputs.version }} \
51
+ gh release create v${{ VERSION }} \
43
52
--draft \
44
- --title "v${{ needs.build.outputs.version }}" \
53
+ --title "v${{ VERSION }}" \
You can’t perform that action at this time.
0 commit comments