File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -88,19 +88,22 @@ jobs:
8888
8989 TAG="v$VERSION"
9090
91+ # The heredoc content starts here.
92+ # Note: The 'EOF_BODY_CONTENT' line MUST NOT have any leading spaces.
93+ # Bash's 'read -r -d '' VAR << EOF' reads until 'EOF' is on a line by itself.
9194 read -r -d '' RELEASE_BODY << EOF_BODY_CONTENT
92- # Install
93- \`\`\`bash
94- curl -L https://rindexer.xyz/install.sh | bash -s -- --version $VERSION
95- \`\`\`
96- EOF_BODY_CONTENT
97-
98- echo "Attempting to edit release $TAG..."
99- gh release edit "$TAG" \
100- --repo ${{ github.repository }} \ # Explicitly specify the repository
101- --prerelease=false \
102- --notes "$RELEASE_BODY" \
103- --target master # Assuming your release tags point to master/main
104-
105- echo "Successfully edited release $TAG."
106- done
95+ # Install
96+ \`\`\`bash
97+ curl -L https://rindexer.xyz/install.sh | bash -s -- --version $VERSION
98+ \`\`\`
99+ EOF_BODY_CONTENT
100+
101+ echo "Attempting to edit release $TAG..."
102+ gh release edit "$TAG" \
103+ --repo ${{ github.repository }} \
104+ --prerelease=false \
105+ --notes "$RELEASE_BODY" \
106+ --target master
107+
108+ echo "Successfully edited release $TAG."
109+ done
You can’t perform that action at this time.
0 commit comments