From e5ccfa86fe597b02937bdb2f91eba73fa2a8e6bc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 22:25:24 +0000 Subject: [PATCH] Update actions/github-script action to v7 (#3886) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/pull_request.yaml | 6 +++--- .github/workflows/release-action.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index e79becf41..743526a8d 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -27,7 +27,7 @@ jobs: pull-requests: read steps: - name: Add notice - uses: actions/github-script@v6 + uses: actions/github-script@v7 if: contains(github.event.pull_request.labels.*.name, 'X-Blocked') with: script: | @@ -49,7 +49,7 @@ jobs: - name: Add label if: ${{ steps.teams.outputs.isTeamMember == 'false' }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.issues.addLabels({ @@ -68,7 +68,7 @@ jobs: github.event.pull_request.head.repo.full_name != github.repository steps: - name: Close pull request - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | github.rest.issues.createComment({ diff --git a/.github/workflows/release-action.yml b/.github/workflows/release-action.yml index add8be839..bea7e9c29 100644 --- a/.github/workflows/release-action.yml +++ b/.github/workflows/release-action.yml @@ -106,7 +106,7 @@ jobs: run: echo "VERSION=$(echo $VERSION | cut -d- -f1)" >> $GITHUB_ENV - name: Check version number not in use - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const { VERSION } = process.env; @@ -186,7 +186,7 @@ jobs: inputs.dependencies && inputs.include-changes && contains(fromJSON(steps.update-dependencies.outputs.updated), inputs.include-changes) - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: RELEASE_ID: ${{ steps.release.outputs.id }} DEPENDENCY: ${{ inputs.include-changes }} @@ -272,7 +272,7 @@ jobs: - name: Validate release has expected assets if: inputs.expected-asset-count - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: RELEASE_ID: ${{ steps.release.outputs.id }} EXPECTED_ASSET_COUNT: ${{ inputs.expected-asset-count }} @@ -300,7 +300,7 @@ jobs: git push origin master - name: Publish release - uses: actions/github-script@v6 + uses: actions/github-script@v7 env: RELEASE_ID: ${{ steps.release.outputs.id }} FINAL: ${{ inputs.final }}