Skip to content

Commit

Permalink
gh: hopefully fix apidiff workflow
Browse files Browse the repository at this point in the history
actions/github-script v5 changed how API is exposed to the scripts.
Seems like we need to add `.rest` here and there.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Mar 27, 2024
1 parent f631fcc commit 32e7497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
if (semverType === 'major') {
// Add 'breaking-change' label
await github.issues.addLabels({
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
Expand All @@ -56,7 +56,7 @@ jobs:
} else {
// Remove 'breaking-change' label if it exists
try {
await github.issues.removeLabel({
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
Expand Down

0 comments on commit 32e7497

Please sign in to comment.