ci: fix syntax for updated github script action

This commit is contained in:
Nicolas Meienberger 2024-03-04 20:40:55 +01:00
parent b448d88e6d
commit ae03da16bd

View File

@ -101,7 +101,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const semver = require('semver')
const { data } = await github.pulls.listFiles({
const { data } = await github.rest.pulls.listFiles({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
@ -154,7 +154,7 @@ jobs:
with:
github-token: ${{ secrets.PERSONAL_TOKEN }}
script: |
github.issues.addLabels({
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,