1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-04 12:56:48 +00:00

ci: Improve regenerate-static-assets comments

This commit is contained in:
TwiN
2026-01-16 17:24:57 -05:00
committed by GitHub
parent 0f22e863a9
commit d8724d683e

View File

@@ -87,10 +87,10 @@ jobs:
let message = ''; let message = '';
var workflowUrl = `${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}`; var workflowUrl = `${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}`;
if (status === 'no_changes') { if (status === 'no_changes') {
message = `@${context.actor} No changes to commit after [regenerating static assets](${workflowUrl}) :tada:`; message = `@${context.actor} No changes to commit ([ref](${workflowUrl}).`;
} else { } else {
reaction = '-1'; reaction = '-1';
message = `@${context.actor} :warning: There was an issue regenerating static assets. Please check the [workflow run logs](${workflowUrl}) for more details.`; message = `@${context.actor} There was an issue regenerating static assets. Please check the [workflow run logs](${workflowUrl}) for more details.`;
} }
if (message.length) { if (message.length) {
await github.rest.issues.createComment({ await github.rest.issues.createComment({