Skip to content

Commit 5b35169

Browse files
authored
Merge branch 'main' into build/deploy-unstable-main/split-workflow
2 parents b564164 + 60dc2e7 commit 5b35169

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/create-draft-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
outputs:
15-
release-body: ${{ steps.release_body.outputs.release_body }}
15+
b64-release-body: ${{ steps.release_body.outputs.b64_release_body }}
1616

1717
steps:
1818
- name: Checkout repository
@@ -85,7 +85,8 @@ jobs:
8585
fi
8686
} > /tmp/release_body.txt
8787
88-
echo "release_body=$(cat /tmp/release_body.txt)" >> "$GITHUB_OUTPUT"
88+
# Base64 encoded to avoid errors "Unable to process file command 'output'"
89+
echo "b64_release_body=$(base64 -w0 /tmp/release_body.txt)" >> "$GITHUB_OUTPUT"
8990
9091
create-draft-release:
9192
needs: [prepare-draft-release]
@@ -98,14 +99,15 @@ jobs:
9899
- name: Create draft release
99100
env:
100101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101-
RELEASE_BODY: ${{ needs.prepare-draft-release.outputs.release-body }}
102+
B64_RELEASE_BODY: ${{ needs.prepare-draft-release.outputs.b64-release-body }}
102103
run: |
103104
CURRENT_TAG="${GITHUB_REF#refs/tags/}"
105+
body=$(base64 -d <<< "$B64_RELEASE_BODY")
104106
105107
gh release create "$CURRENT_TAG" \
106108
--draft \
107109
--title="$CURRENT_TAG" \
108-
--notes="$RELEASE_BODY"
110+
--notes="$body"
109111
110112
echo "✅ Draft release created for $CURRENT_TAG"
111113

0 commit comments

Comments
 (0)