1010 runs-on : ubuntu-latest
1111
1212 outputs :
13- version : ${{ steps.version.outputs.version }} # Make version an output
13+ version : ${{ steps.version.outputs.version }}
1414
1515 steps :
1616 - uses : actions/checkout@v3
2929 run : mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
3030
3131 - name : Get next version
32- id : version # ID needed to reference in outputs
32+ id : version
3333 uses : reecetech/version-increment@2023年9月3日
3434 with :
3535 scheme : semver
@@ -91,13 +91,16 @@ jobs:
9191 echo "" >> changelog.md
9292 git log --pretty=format:"- %s" -n 10 >> changelog.md
9393 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
9598
9699 - name : Create GitHub Release
97100 uses : softprops/action-gh-release@v2
98101 with :
99102 token : ${{ secrets.GITHUB_TOKEN }}
100- tag_name : " v${{ needs.build.outputs.version }}" # Ensure correct reference
103+ tag_name : " v${{ needs.build.outputs.version }}"
101104 name : " MyRobotLab Nixie v${{ needs.build.outputs.version }}"
102105 body : |
103106 ## MyRobotLab Nixie Release
@@ -114,7 +117,7 @@ jobs:
114117 You will need **Java 11 or newer**. If you are only running MyRobotLab, you need the JRE (Java Runtime Environment).
115118 If you are building from source, you will need the JDK (Java Development Kit). Oracle or OpenJDK will work.
116119
117- $(cat changelog.md)
120+ ${{ env.CHANGELOG }}
118121
119122 files : target/myrobotlab-${{ needs.build.outputs.version }}.zip
120123 draft : false
0 commit comments