From 090f14abda9a7ad4696b7ea3646bfc3001c7145c Mon Sep 17 00:00:00 2001 From: Daco Date: Thu, 18 Apr 2024 11:12:52 +0200 Subject: [PATCH] Use serverUrl from context --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 83aab05..26713e0 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ async function sendAlert(alert) { source: 'GitHub Actions', severity: 'critical', custom_details: { - run_details: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + run_details: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, related_commits: context.payload.commits ? context.payload.commits.map((commit) => `${commit.message}: ${commit.url}`).join(', ') : 'No related commits', @@ -60,4 +60,4 @@ async function sendAlert(alert) { } catch (error) { core.setFailed(error.message); } -})(); \ No newline at end of file +})();