Skip to content

Commit

Permalink
Fix github scripts to v5 (#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Oct 4, 2021
1 parent 5611edf commit a020e37
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-PROD-slim.yml
Expand Up @@ -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",
Expand All @@ -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 }}",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-PROD-standard.yml
Expand Up @@ -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",
Expand All @@ -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 }}",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-RELEASE-slim.yml
Expand Up @@ -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",
Expand All @@ -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 }}",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-RELEASE-standard.yml
Expand Up @@ -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",
Expand All @@ -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 }}",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Expand Up @@ -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,
Expand Down

0 comments on commit a020e37

Please sign in to comment.