mirror of
https://github.com/TwiN/gatus.git
synced 2026-04-04 17:29:04 +00:00
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:
@@ -88,6 +88,8 @@ jobs:
|
||||
var workflowUrl = `${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}`;
|
||||
if (status === 'no_changes') {
|
||||
message = `@${context.actor} No changes to commit ([ref](${workflowUrl})).`;
|
||||
} else if (status === 'success') {
|
||||
// Assets regenerated successfully - no comment needed, just add reaction
|
||||
} else {
|
||||
reaction = '-1';
|
||||
message = `@${context.actor} There was an issue regenerating static assets. Please check the [workflow run logs](${workflowUrl}) for more details.`;
|
||||
|
||||
Reference in New Issue
Block a user