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:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user