mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-28 17:11:00 -05:00
Fix github scripts to v5 (#2032)
This commit is contained in:
parent
5611edf5df
commit
a020e37e75
5 changed files with 9 additions and 9 deletions
4
.github/workflows/deploy-PROD-slim.yml
vendored
4
.github/workflows/deploy-PROD-slim.yml
vendored
|
@ -133,7 +133,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.issues.create({
|
||||
const create = await github.api.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: "Failed to deploy to production",
|
||||
|
@ -152,7 +152,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addAssignees({
|
||||
github.api.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
4
.github/workflows/deploy-PROD-standard.yml
vendored
4
.github/workflows/deploy-PROD-standard.yml
vendored
|
@ -133,7 +133,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.issues.create({
|
||||
const create = await github.api.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: "Failed to deploy to production",
|
||||
|
@ -152,7 +152,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addAssignees({
|
||||
github.api.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
4
.github/workflows/deploy-RELEASE-slim.yml
vendored
4
.github/workflows/deploy-RELEASE-slim.yml
vendored
|
@ -167,7 +167,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.issues.create({
|
||||
const create = await github.api.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: "Failed to deploy release to production",
|
||||
|
@ -186,7 +186,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addAssignees({
|
||||
github.apiissues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
|
@ -167,7 +167,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const create = await github.issues.create({
|
||||
const create = await github.api.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: "Failed to deploy release to production",
|
||||
|
@ -186,7 +186,7 @@ jobs:
|
|||
# https://octokit.github.io/rest.js/v18#issues-create
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addAssignees({
|
||||
github.api.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: "${{ steps.create-issue.outputs.result }}",
|
||||
|
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
@ -53,7 +53,7 @@ jobs:
|
|||
uses: actions/github-script@v5
|
||||
with:
|
||||
script: |
|
||||
github.issues.removeLabel({
|
||||
github.rest.issues.removeLabel({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
|
Loading…
Reference in a new issue