|
36 | 36 | RELEASE_VERSION_NO_SUFFIX: ${{ needs.release-version.outputs.version_no_suffix }}
|
37 | 37 | REF: ${{ github.ref }}
|
38 | 38 | outputs:
|
39 |
| - draft-release-notes-body-base64: ${{ steps.release-notes.outputs.release_notes_body_base64 }} |
| 39 | + draft-release-notes-body: ${{ steps.release-notes.outputs.release_notes_body }} |
40 | 40 | steps:
|
41 | 41 | - name: Checkout
|
42 | 42 | uses: actions/checkout@v4
|
@@ -68,17 +68,20 @@ jobs:
|
68 | 68 | env:
|
69 | 69 | GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
70 | 70 | run: |
|
71 |
| - RELEASE_BODY_BASE64=$( \ |
| 71 | + RELEASE_BODY=$( \ |
72 | 72 | gh api /repos/${{ github.repository }}/releases \
|
73 | 73 | -q '.[] | select(.name == "${{ env.RELEASE_VERSION_NO_SUFFIX }}" and .draft == true) | .body' \
|
74 |
| - | base64 \ |
75 | 74 | )
|
76 |
| - echo "release_notes_body_base64=${RELEASE_BODY_BASE64}" >> $GITHUB_OUTPUT |
77 | 75 | # if no draft release notes are found, we cannot continue
|
78 |
| - if [ -z "${RELEASE_BODY_BASE64}" ]; then |
| 76 | + if [ -z "${RELEASE_BODY}" ]; then |
79 | 77 | echo "No draft release notes found for ${{ env.RELEASE_VERSION_NO_SUFFIX }}"
|
80 | 78 | exit 1
|
81 | 79 | fi
|
| 80 | + { |
| 81 | + echo 'release_notes_body<<EOF' |
| 82 | + echo "${RELEASE_BODY}" |
| 83 | + echo 'EOF' |
| 84 | + } >> $GITHUB_OUTPUT |
82 | 85 | components:
|
83 | 86 | name: Component CTF Builds
|
84 | 87 | uses: ./.github/workflows/components.yaml
|
@@ -211,7 +214,10 @@ jobs:
|
211 | 214 |
|
212 | 215 | - name: Setup Release Notes as File to make it readable by GoReleaser
|
213 | 216 | run: |
|
214 |
| - base64 -d <<< "${{ needs.check.outputs.draft-release-notes-body-base64 }}" > $RUNNER_TEMP/RELEASE_NOTES.md |
| 217 | + touch $RUNNER_TEMP/RELEASE_NOTES.md |
| 218 | + cat > $RUNNER_TEMP/RELEASE_NOTES.md << EOF |
| 219 | + ${{ needs.check.outputs.draft-release-notes-body }} |
| 220 | + EOF |
215 | 221 | echo "RELEASE_NOTES=$RUNNER_TEMP/RELEASE_NOTES.md" >> $GITHUB_ENV
|
216 | 222 | cat $RUNNER_TEMP/RELEASE_NOTES.md
|
217 | 223 | - name: Run GoReleaser
|
|
0 commit comments