From 07c8df53b27e341c59f82a9bad825266a57eb7c5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:38:04 +0000 Subject: [PATCH] chore(deps): bump actions/github-script from 6 to 7 Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/bot-automerge.yml | 6 +-- .github/workflows/dependabot-automerge.yml | 4 +- .github/workflows/zwave-js-bot_comment.yml | 42 +++++++++---------- .github/workflows/zwave-js-bot_discussion.yml | 2 +- .github/workflows/zwave-js-bot_issue.yml | 2 +- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/bot-automerge.yml b/.github/workflows/bot-automerge.yml index 97b0421e8a66..602a27a09d41 100644 --- a/.github/workflows/bot-automerge.yml +++ b/.github/workflows/bot-automerge.yml @@ -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: | @@ -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 @@ -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: | diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 41f802625ee8..38f918c0d1ad 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -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 }} @@ -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: | diff --git a/.github/workflows/zwave-js-bot_comment.yml b/.github/workflows/zwave-js-bot_comment.yml index 3d6326f8a017..f884ca1aab50 100644 --- a/.github/workflows/zwave-js-bot_comment.yml +++ b/.github/workflows/zwave-js-bot_comment.yml @@ -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: | @@ -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 @@ -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`); @@ -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 }} @@ -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 @@ -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: | @@ -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: @@ -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 @@ -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: | @@ -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: @@ -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 @@ -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: | @@ -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 }} @@ -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 @@ -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: | @@ -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 }} @@ -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 }} @@ -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 @@ -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: | @@ -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 }} @@ -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 }} diff --git a/.github/workflows/zwave-js-bot_discussion.yml b/.github/workflows/zwave-js-bot_discussion.yml index 3df897c81193..ef4aaec8f205 100644 --- a/.github/workflows/zwave-js-bot_discussion.yml +++ b/.github/workflows/zwave-js-bot_discussion.yml @@ -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: | diff --git a/.github/workflows/zwave-js-bot_issue.yml b/.github/workflows/zwave-js-bot_issue.yml index bcf5ade7c35e..211d7e451713 100644 --- a/.github/workflows/zwave-js-bot_issue.yml +++ b/.github/workflows/zwave-js-bot_issue.yml @@ -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: |