Skip to content

Commit 9132d98

Browse files
committed
Fix syntax errors in release workflow script
1 parent e67580c commit 9132d98

File tree

1 file changed

+39
-11
lines changed

1 file changed

+39
-11
lines changed

.github/workflows/create-release.yml

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,49 @@ jobs:
101101
id: release_notes
102102
run: |
103103
version="${{ steps.get_version.outputs.VERSION }}"
104-
current_tag="${GITHUB_REF#refs/tags/}"
105104
106-
# Get the template content
107-
template_content="${{ steps.get_template.outputs.TEMPLATE }}"
108-
109-
# Start with the template and replace version placeholders
110-
notes="$template_content"
111-
notes="${notes/VERSION/$version}"
105+
# Use a simplified approach to avoid complex string replacements
106+
cat > release_notes.md << 'EOL'
107+
## What's Changed
108+
<!-- GitHub will automatically populate this section -->
109+
110+
**Full Changelog**: <!-- GitHub will automatically populate this -->
111+
112+
## 🔐 Security Info
113+
114+
**Important:** Please verify your download using the information below. Any file with different values for this particular version is not from the official source.
115+
116+
- **Winhance.Installer.exe**
117+
- Size:
118+
- SHA256:
119+
120+
- **Winhance.exe**
121+
- Size:
122+
- SHA256:
123+
124+
## Known Issues
125+
<!-- List known issues -->
126+
-
127+
128+
## Installation
129+
Download from [winhance.net](https://winhance.net) or directly from this release.
130+
131+
The Winhance.Installer.exe includes both Installable and Portable versions during setup.
132+
133+
## Compatibility
134+
- Windows 10/11
135+
- Tested on Windows 10 x64 22H2 and Windows 11 24H2
136+
137+
## Feedback
138+
Please report any issues on the [GitHub Issues page](https://github.com/memstechtips/Winhance/issues).
139+
EOL
112140
113-
# Remove the placeholder comments for GitHub's automatic sections
114-
notes="${notes/\<!-- This section will be automatically populated by GitHub's release notes generation --\>/}"
115-
notes="${notes/\<!-- Will be automatically populated --\>/}"
141+
# Replace version if needed
142+
sed -i "s/VERSION/$version/g" release_notes.md
116143
144+
# Set as output
117145
echo "NOTES<<EOF" >> $GITHUB_OUTPUT
118-
echo -e "$notes" >> $GITHUB_OUTPUT
146+
cat release_notes.md >> $GITHUB_OUTPUT
119147
echo "EOF" >> $GITHUB_OUTPUT
120148
shell: bash
121149

0 commit comments

Comments
 (0)