9191 run : |
9292 name=$(git tag --sort=-creatordate | grep -E '^PR-[a-f0-9]+$' | sed -n '2p')
9393 if [ -z "$name" ]; then
94- name="pre-release"
94+ name=$(git tag --sort=-creatordate | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sed -n '2p')
9595 fi
9696 echo "previousPreReleaseTag=$name" >> $GITHUB_ENV
9797
@@ -102,9 +102,22 @@ jobs:
102102 token : ${{ secrets.GITHUB_TOKEN }}
103103 fromTag : ${{ github.ref_name }}
104104 toTag : ${{ startsWith(github.ref, 'refs/tags/PR-') && env.previousPreReleaseTag || env.previousStableTag || 'HEAD' }}
105- excludeTypes : ${{ !startsWith(github.ref, 'refs/tags/PR-') && 'build,docs,other,style,refactor' || '' }}
105+ excludeTypes : ${{ !startsWith(github.ref, 'refs/tags/PR-') && 'build,docs,other,style,refactor,chore ' || '' }}
106106 writeToFile : false
107107
108+ - name : Prepare changelogs
109+ run : |
110+ cat > release-notes.md << 'EOF'
111+ ${{ steps.changelog.outputs.changes }}
112+
113+ ---
114+
115+ ### Checksums
116+
117+ | Variant | SHA-256 |
118+ | ------- | ------- |
119+ | release | ${{ needs.build.outputs.release_sha }} |
120+ EOF
108121
109122 - name : Manage pre-release
110123 if : startsWith(github.ref, 'refs/tags/PR-')
@@ -117,29 +130,10 @@ jobs:
117130 git push origin :refs/tags/pre-release || echo "Remote tag 'pre-release' does not exist."
118131 gh release delete pre-release --yes || echo "Failed to delete last pre-release."
119132
120- CLEANED_CHANGES=$(echo '${{ steps.changelog.outputs.changes }}' | sed 's/`/`/g')
121-
122133 echo "Creating new pre-release..."
123134 gh release create ${{ github.ref_name }} \
124135 --title "${{ github.ref_name }}" \
125- --notes "$(cat << EOF
126- ##### _NOTE: Android TV is incomplete, the providers on this port are not yet installable. Though, you could test it now._
127-
128- ---
129-
130- ### 🐞 Known issues
131- - TV focus crashes. Compose TV is bugged af; we wait til the new update.
132-
133- ${CLEANED_CHANGES}
134- ---
135-
136- ### Checksums
137-
138- | Variant | SHA-256 |
139- | ------- | ------- |
140- | release | ${{ needs.build.outputs.release_sha }} |
141- EOF
142- )" \
136+ --notes-file release-notes.md \
143137 --prerelease \
144138 flixclusive-release.apk
145139
@@ -151,28 +145,9 @@ jobs:
151145 run : |
152146 gh release delete ${{ github.ref_name }} --yes || echo "Failed to delete ${{ github.ref_name }} release."
153147
154- CLEANED_CHANGES=$(echo '${{ steps.changelog.outputs.changes }}' | sed 's/`/`/g')
155-
156148 gh release create ${{ github.ref_name }} \
157149 --title "${{ github.ref_name }}" \
158- --notes "$(cat << EOF
159- ##### _NOTE: Android TV is incomplete, the providers on this port are not yet installable. Though, you could test it now._
160-
161- ---
162-
163- ### 🐞 Known issues
164- - TV focus crashes. Compose TV is bugged af; we wait til the new update.
165-
166- ${CLEANED_CHANGES}
167- ---
168-
169- ### Checksums
170-
171- | Variant | SHA-256 |
172- | ------- | ------- |
173- | release | ${{ needs.build.outputs.release_sha }} |
174- EOF
175- )" \
150+ --notes-file release-notes.md \
176151 flixclusive-release.apk
177152
178153
0 commit comments