File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
12
12
outputs :
13
- version : ${{ steps.version.outputs.version }} # Make version an output
13
+ version : ${{ steps.version.outputs.version }}
14
14
15
15
steps :
16
16
- uses : actions/checkout@v3
29
29
run : mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
30
30
31
31
- name : Get next version
32
- id : version # ID needed to reference in outputs
32
+ id : version
33
33
34
34
with :
35
35
scheme : semver
@@ -91,13 +91,16 @@ jobs:
91
91
echo "" >> changelog.md
92
92
git log --pretty=format:"- %s" -n 10 >> changelog.md
93
93
echo "" >> changelog.md
94
- cat changelog.md
94
+
95
+ - name : Read Change Log into Variable
96
+ id : read_changelog
97
+ run : echo "CHANGELOG<<EOF" >> $GITHUB_ENV && cat changelog.md >> $GITHUB_ENV && echo "EOF" >> $GITHUB_ENV
95
98
96
99
- name : Create GitHub Release
97
100
uses : softprops/action-gh-release@v2
98
101
with :
99
102
token : ${{ secrets.GITHUB_TOKEN }}
100
- tag_name : " v${{ needs.build.outputs.version }}" # Ensure correct reference
103
+ tag_name : " v${{ needs.build.outputs.version }}"
101
104
name : " MyRobotLab Nixie v${{ needs.build.outputs.version }}"
102
105
body : |
103
106
## MyRobotLab Nixie Release
@@ -114,7 +117,7 @@ jobs:
114
117
You will need **Java 11 or newer**. If you are only running MyRobotLab, you need the JRE (Java Runtime Environment).
115
118
If you are building from source, you will need the JDK (Java Development Kit). Oracle or OpenJDK will work.
116
119
117
- $(cat changelog.md)
120
+ ${{ env.CHANGELOG }}
118
121
119
122
files : target/myrobotlab-${{ needs.build.outputs.version }}.zip
120
123
draft : false
You can’t perform that action at this time.
0 commit comments