Fix levitate detect breaking changes pipeline not sending slack messages (#94482)

* Fix levitate detect breaking changes pipeline not sending slack messages

* Use ref
This commit is contained in:
Esteban Beltran authored and GitHub committed 2024-10-09 17:43:30 +02:00
1 parent 748bfff601
commit 2a7319809a
4 files changed
+40 -40

No files matched your search

@@ -1,9 +0,0 @@
module.exports = async ({ name, github, context, core }) => {
const { owner, repo } = context.repo;
const url = `https://api.github.com/repos/${owner}/${repo}/actions/runs/${context.runId}/jobs`
const result = await github.request(url);
const job = result.data.jobs.find(j => j.name === name);
core.setOutput('link', `${job.html_url}?check_suite_focus=true`);
}