Bugfix: Attach correct link to "levitate detect breaking changes"-message included in PR (#60220)

* Fixed so we link to the proper job and step.

* Fixed according to feedback.

* Added check_suite to the job link
This commit is contained in:
Marcus Andersson
2022-12-15 09:56:23 +01:00
committed by GitHub
parent f73cdc5e80
commit d0a68b266c
2 changed files with 9 additions and 8 deletions
@@ -108,7 +108,7 @@ jobs:
runs-on: ubuntu-latest
needs: ['buildPR', 'buildBase']
env:
GITHUB_STEP_NUMBER: 7
GITHUB_STEP_NUMBER: 8
steps:
- uses: actions/checkout@v3
@@ -134,8 +134,9 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const name = 'Detect breaking changes';
const script = require('./.github/workflows/scripts/pr-get-job-link.js')
await script({github, context, core})
await script({name, github, context, core})
- name: Detect breaking changes
id: breaking-changes