Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump actions/github-script from 6 to 7 #6530

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/bot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: [ubuntu-latest]

steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
steps:
- name: Check if auto-merging should be enabled
id: should-automerge
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand All @@ -76,7 +76,7 @@ jobs:

- name: Approve PR
if: ${{ steps.should-automerge.outputs.result == 'true' }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.BOT_TOKEN }}
script: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
alert-lookup: true

- name: Check if PR should be auto-merged
uses: actions/github-script@v6
uses: actions/github-script@v7
id: should-automerge
env:
updatedDependenciesJson: ${{ steps.dependabot-metadata.outputs.updated-dependencies-json }}
Expand All @@ -41,7 +41,7 @@ jobs:

- name: Approve PR
if: ${{ steps.should-automerge.outputs.result == 'true' }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.BOT_TOKEN }}
script: |
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/zwave-js-bot_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: [18] # This should be LTS

steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

- name: Check user's permissions to do this
id: check-permissions
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Retrieve PR information
if: steps.check-permissions.outputs.result == 'true'
id: pr-info
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const bot = require(`${process.env.GITHUB_WORKSPACE}/trusted/.github/bot-scripts/index.js`);
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:

- name: Give feedback
if: steps.check-permissions.outputs.result == 'true'
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
FEEDBACK: ${{ steps.fix.outputs.result }}
PENDING: ${{ fromJSON(steps.pr-info.outputs.result).pending }}
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:

- name: Check user's permissions to do this
id: check-permissions
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand All @@ -212,7 +212,7 @@ jobs:
# These steps only run if the check was successful
- name: Retrieve PR information
if: steps.check-permissions.outputs.result == 'true'
uses: actions/github-script@v6
uses: actions/github-script@v7
id: get-pr
with:
script: |
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:

- name: Give feedback
if: steps.check-permissions.outputs.result == 'true'
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
FEEDBACK: ${{ steps.fix.outputs.result }}
with:
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:

# - name: Check permissions and necessity
# id: check-permissions
# uses: actions/github-script@v6
# uses: actions/github-script@v7
# with:
# github-token: ${{secrets.BOT_TOKEN}}
# result-encoding: string
Expand All @@ -312,7 +312,7 @@ jobs:
# # These steps only run if the check was successful
# - name: Retrieve PR information
# if: steps.check-permissions.outputs.result == 'true'
# uses: actions/github-script@v6
# uses: actions/github-script@v7
# id: get-pr
# with:
# script: |
Expand Down Expand Up @@ -360,7 +360,7 @@ jobs:

# - name: Give feedback
# if: steps.check-permissions.outputs.result == 'true'
# uses: actions/github-script@v6
# uses: actions/github-script@v7
# env:
# FEEDBACK: ${{ steps.fix.outputs.result }}
# with:
Expand Down Expand Up @@ -388,7 +388,7 @@ jobs:

- name: Check user's permissions to do this
id: check-permissions
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand Down Expand Up @@ -416,7 +416,7 @@ jobs:
- name: Get config file ID
if: steps.check-permissions.outputs.result == 'true'
id: config-id
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand Down Expand Up @@ -461,7 +461,7 @@ jobs:

- name: Create PR
if: steps.check-permissions.outputs.result == 'true'
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
RESULT: ${{ steps.import.outputs.result }}
branchname: ${{ steps.import.outputs.branchname }}
Expand Down Expand Up @@ -496,7 +496,7 @@ jobs:

- name: Check user's permissions to do this
id: check-permissions
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
- name: Parse command
if: steps.check-permissions.outputs.result == 'true'
id: parse-command
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand All @@ -541,7 +541,7 @@ jobs:
if: |
steps.check-permissions.outputs.result == 'true' &&
!fromJSON(steps.parse-command.outputs.result).skip
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
id: ${{ fromJSON(steps.parse-command.outputs.result).id }}
flag: ${{ fromJSON(steps.parse-command.outputs.result).flag }}
Expand Down Expand Up @@ -584,7 +584,7 @@ jobs:
if: |
steps.check-permissions.outputs.result == 'true' &&
!fromJSON(steps.parse-command.outputs.result).skip
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
RESULT: ${{ steps.commit-changes.outputs.result }}
branchname: ${{ steps.commit-changes.outputs.branchname }}
Expand Down Expand Up @@ -616,7 +616,7 @@ jobs:

- name: Check user's permissions to do this
id: check-permissions
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
result-encoding: string
Expand Down Expand Up @@ -644,7 +644,7 @@ jobs:
- name: Parse command
if: steps.check-permissions.outputs.result == 'true'
id: parse-command
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand All @@ -661,7 +661,7 @@ jobs:
steps.check-permissions.outputs.result == 'true' &&
!fromJSON(steps.parse-command.outputs.result).skip
id: add-fingerprint
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
fingerprint: ${{ fromJSON(steps.parse-command.outputs.result).fingerprint }}
id: ${{ fromJSON(steps.parse-command.outputs.result).id }}
Expand Down Expand Up @@ -706,7 +706,7 @@ jobs:
if: |
steps.check-permissions.outputs.result == 'true' &&
!fromJSON(steps.parse-command.outputs.result).skip
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
RESULT: ${{ steps.commit-changes.outputs.result }}
branchname: ${{ steps.commit-changes.outputs.branchname }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zwave-js-bot_discussion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout master branch
uses: actions/checkout@v4

- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zwave-js-bot_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout master branch
uses: actions/checkout@v4

- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{secrets.BOT_TOKEN}}
script: |
Expand Down
Loading