Skip to content

Commit

Permalink
upgrade github-script action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 26, 2024
1 parent 13dbfc8 commit c409b85
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
&& (!contains(github.event.issue.labels.*.name, 'safe-to-test') || github.event.issue.user.name != github.event.comment.user.name)
run: exit 1
- name: React to comment
uses: actions/github-script@v4
uses: actions/github-script@v7
with:
script: |
const {owner, repo} = context.issue
github.reactions.createForIssueComment({
github.rest.reactions.createForIssueComment({
owner,
repo,
comment_id: context.payload.comment.id,
Expand All @@ -57,11 +57,11 @@ jobs:
permissions:
pull-requests: read
steps:
- uses: actions/github-script@v4
- uses: actions/github-script@v7
id: comment-branch
with:
script: |
const result = await github.pulls.get ({
const result = await github.rest.pulls.get ({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
Expand All @@ -75,7 +75,7 @@ jobs:
pull-requests: write
steps:
- name: Leave Actions Run Comment
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const runURL = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${{ github.run_id }}`;
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
run: ./mvnw -B -U clean verify

- name: Add workflow result as comment on PR
uses: actions/github-script@v6
uses: actions/github-script@v7
if: always()
with:
script: |
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
with:
name: openapi-diff
- name: Comment schema check result
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const diffFmt = s => {
Expand All @@ -257,7 +257,7 @@ jobs:
with:
name: graphql-diff
- name: Comment schema check result
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const diffFmt = s => {
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
git commit -S -m "chore(schema): automatic update"
git push origin ${{ needs.checkout-branch.outputs.PR_head_ref }}
- name: Comment on schema update
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const prNumber = ${{ needs.checkout-branch.outputs.PR_num }};
Expand Down

0 comments on commit c409b85

Please sign in to comment.