99 - ' .gitattributes'
1010 - ' .github/images'
1111 - ' .github/ISSUE_TEMPLATE'
12- - ' **/*.hlsl'
1312 pull_request :
1413 paths-ignore :
1514 - ' **.md'
1817 - ' .gitattributes'
1918 - ' .github/images'
2019 - ' .github/ISSUE_TEMPLATE'
21- - ' **/*.hlsl'
2220
2321jobs :
2422 build :
@@ -177,12 +175,13 @@ jobs:
177175 const shortSha = commit.sha.substring(0, 7);
178176 const author = commit.commit.author.name;
179177 const message = commit.commit.message.split('\n')[0]; // First line only
180- return `- \`${shortSha}\` ${message} (@${author})`;
178+ const url = commit.html_url; // Get the URL to the commit
179+ return `- [\`${shortSha}\`](${url}) ${message} (@${author})`;
181180 })
182181 .join('\n');
183182
184- // If no commits found, provide a default message
185- return releaseNotes || '- Initial release or no commits found';
183+ // Set the output directly to preserve formatting
184+ core.setOutput('notes', releaseNotes || '- Initial release or no commits found') ;
186185
187186 - name : Publish release
188187 uses : marvinpinto/action-automatic-releases@latest
@@ -191,37 +190,7 @@ jobs:
191190 automatic_release_tag : " ${{ steps.get_datetime.outputs.version }}"
192191 prerelease : true
193192 title : " Spartan v${{ steps.get_datetime.outputs.version }}"
193+ body : " ${{ steps.generate_release_notes.outputs.notes }}"
194194 files : |
195195 spartan_vulkan_release_${{ steps.get_datetime.outputs.version }}.7z
196- spartan_vulkan_debug_${{ steps.get_datetime.outputs.version }}.7z
197-
198- - name : Update release notes
199- uses : actions/github-script@v7
200- env :
201- RELEASE_NOTES : ${{ steps.generate_release_notes.outputs.result }}
202- RELEASE_TAG : ${{ steps.get_datetime.outputs.version }}
203- with :
204- script : |
205- const releaseNotes = process.env.RELEASE_NOTES;
206- const tagName = process.env.RELEASE_TAG;
207-
208- // Get the release by tag
209- const { data: releases } = await github.rest.repos.listReleases({
210- owner: context.repo.owner,
211- repo: context.repo.repo
212- });
213-
214- const release = releases.find(r => r.tag_name === tagName);
215-
216- if (release) {
217- // Update the release body
218- await github.rest.repos.updateRelease({
219- owner: context.repo.owner,
220- repo: context.repo.repo,
221- release_id: release.id,
222- body: releaseNotes
223- });
224- console.log(`Updated release notes for ${tagName}`);
225- } else {
226- console.log(`Release with tag ${tagName} not found`);
227- }
196+ spartan_vulkan_debug_${{ steps.get_datetime.outputs.version }}.7z
0 commit comments