fix(ci): regenerate-static-assets workflow reporting false errors on success (#1614)
* Initial plan * Fix workflow logic to properly handle success status Agent-Logs-Url: https://github.com/TwiN/gatus/sessions/16d5eaf0-8b26-4f8e-8818-f245652fb022 Co-authored-by: TwiN <15699766+TwiN@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TwiN <15699766+TwiN@users.noreply.github.com>
This commit is contained in:
parent
f4428aa600
commit
f925cb4924
@ -88,6 +88,8 @@ jobs:
|
|||||||
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 ([ref](${workflowUrl})).`;
|
message = `@${context.actor} No changes to commit ([ref](${workflowUrl})).`;
|
||||||
|
} else if (status === 'success') {
|
||||||
|
// Assets regenerated successfully - no comment needed, just add reaction
|
||||||
} else {
|
} else {
|
||||||
reaction = '-1';
|
reaction = '-1';
|
||||||
message = `@${context.actor} 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.`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user