Skip to content

Commit 92746d6

Browse files
committed
updated github actions
1 parent 6d8924b commit 92746d6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
echo "Contents of changelog.txt:"
116116
cat changelog.txt
117117
118-
- name: Generate Release Notes
118+
- name: Generate Release Notes
119119
id: generate-release-notes
120120
uses: actions/github-script@v7
121121
with:
@@ -127,13 +127,13 @@ jobs:
127127
});
128128
return response.data.body;
129129
130-
- name: Write Generated Notes to File
130+
- name: Write Cleaned Generated Notes to File
131131
run: |
132-
# Write GENERATED_NOTES to a temporary file
133-
echo "${{ steps.generate-release-notes.outputs.result }}" > generated_notes.txt
132+
# Clean the generated release notes by removing leading/trailing whitespaces
133+
echo "${{ steps.generate-release-notes.outputs.result }}" | sed 's/^[ \t]*//;s/[ \t]*$//' > generated_notes.txt
134134
135-
# Ensure the file is created
136-
echo "Generated release notes written to generated_notes.txt"
135+
# Debug output
136+
cat generated_notes.txt
137137
138138
- name: Combine Release Notes and Changelog
139139
run: |

0 commit comments

Comments
 (0)