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
2024-10-09 17:43:30 +02:00
committed by GitHub
parent 748bfff601
commit 2a7319809a
4 changed files with 40 additions and 40 deletions
@@ -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`);
}