@@ -40,26 +40,24 @@ jobs:
4040 run : sha256sum codex-browser-bridge*.exe > checksums.txt
4141
4242 - name : Generate release notes
43- id : notes
4443 shell : bash
4544 run : |
4645 if [ -f CHANGELOG.md ]; then
47- notes=$( awk '/^## \[/{if(found) exit; found=1; next} found{print}' CHANGELOG.md)
46+ awk '/^## \[/{if(found) exit; found=1; next} found{print}' CHANGELOG.md > release_notes.txt
4847 fi
49- if [ -z "$notes" ]; then
50- notes=$(git log --oneline --no-merges $(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || git rev-list --max-parents=0 HEAD)..HEAD)
48+ if [ ! -s release_notes.txt ]; then
49+ prev=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || git rev-list --max-parents=0 HEAD)
50+ git log --oneline --no-merges "$prev"..HEAD > release_notes.txt
5151 fi
52- echo "notes<<EOF" >> $GITHUB_OUTPUT
53- echo "$notes" >> $GITHUB_OUTPUT
54- echo "EOF" >> $GITHUB_OUTPUT
5552
5653 - name : Create GitHub Release
5754 env :
5855 GH_TOKEN : ${{ github.token }}
56+ shell : bash
5957 run : |
60- gh release create "${{ steps.version.outputs.tag }}" `
61- --title "${{ steps.version.outputs.tag }}" `
62- --notes "${{ steps.notes.outputs.notes }}" `
63- codex-browser-bridge.exe `
64- codex-browser-bridge-arm64.exe `
58+ gh release create "${{ steps.version.outputs.tag }}" \
59+ --title "${{ steps.version.outputs.tag }}" \
60+ --notes-file release_notes.txt \
61+ codex-browser-bridge.exe \
62+ codex-browser-bridge-arm64.exe \
6563 checksums.txt
0 commit comments