From 9a0d4775ae1ed5a39c55f97147dacbdf8c3099b5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 10:34:12 -0700 Subject: [PATCH] Bump actions/github-script from 4 to 6 (#10246) * Bump actions/github-script from 4 to 6 Bumps [actions/github-script](https://github.com/actions/github-script) from 4 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Update to github.rest.* for calls to API for compat w/ github-script@v5+ Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Marslender --- .github/workflows/build-linux-arm64-installer.yml | 8 ++++---- .github/workflows/build-linux-installer-deb.yml | 8 ++++---- .github/workflows/build-linux-installer-rpm.yml | 8 ++++---- .github/workflows/build-macos-installer.yml | 4 ++-- .github/workflows/build-macos-m1-installer.yml | 4 ++-- .github/workflows/build-windows-installer.yml | 8 ++++---- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-linux-arm64-installer.yml b/.github/workflows/build-linux-arm64-installer.yml index 109d981c2c17..fad14fa525cd 100644 --- a/.github/workflows/build-linux-arm64-installer.yml +++ b/.github/workflows/build-linux-arm64-installer.yml @@ -62,13 +62,13 @@ jobs: SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); @@ -83,13 +83,13 @@ jobs: chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" # Get the most recent release from bladebit - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-bladebit' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'bladebit', }); diff --git a/.github/workflows/build-linux-installer-deb.yml b/.github/workflows/build-linux-installer-deb.yml index 00f835ed45b5..786ed3dd249b 100644 --- a/.github/workflows/build-linux-installer-deb.yml +++ b/.github/workflows/build-linux-installer-deb.yml @@ -96,13 +96,13 @@ jobs: SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); @@ -117,13 +117,13 @@ jobs: chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" # Get the most recent release from bladebit - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-bladebit' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'bladebit', }); diff --git a/.github/workflows/build-linux-installer-rpm.yml b/.github/workflows/build-linux-installer-rpm.yml index a287600d9321..5564b472e503 100644 --- a/.github/workflows/build-linux-installer-rpm.yml +++ b/.github/workflows/build-linux-installer-rpm.yml @@ -65,13 +65,13 @@ jobs: SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); @@ -86,13 +86,13 @@ jobs: chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" # Get the most recent release from bladebit - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-bladebit' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'bladebit', }); diff --git a/.github/workflows/build-macos-installer.yml b/.github/workflows/build-macos-installer.yml index 545933c9004c..216459ad6cfa 100644 --- a/.github/workflows/build-macos-installer.yml +++ b/.github/workflows/build-macos-installer.yml @@ -104,13 +104,13 @@ jobs: p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }} # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); diff --git a/.github/workflows/build-macos-m1-installer.yml b/.github/workflows/build-macos-m1-installer.yml index aeb329a5e6c9..7a178382e303 100644 --- a/.github/workflows/build-macos-m1-installer.yml +++ b/.github/workflows/build-macos-m1-installer.yml @@ -78,13 +78,13 @@ jobs: p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }} # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); diff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.yml index d621ef0ff971..77344505bf48 100644 --- a/.github/workflows/build-windows-installer.yml +++ b/.github/workflows/build-windows-installer.yml @@ -105,13 +105,13 @@ jobs: deactivate # Get the most recent release from chia-plotter-madmax - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-madmax' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'chia-plotter-madmax', }); @@ -124,13 +124,13 @@ jobs: Invoke-WebRequest https://github.com/Chia-Network/chia-plotter-madmax/releases/download/${{ steps.latest-madmax.outputs.result }}/chia_plot_k34-${{ steps.latest-madmax.outputs.result }}.exe -OutFile "$env:GITHUB_WORKSPACE\madmax\chia_plot_k34.exe" # Get the most recent release from bladebit - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: 'latest-bladebit' with: github-token: ${{ secrets.GITHUB_TOKEN }} result-encoding: string script: | - const releases = await github.repos.listReleases({ + const releases = await github.rest.repos.listReleases({ owner: 'Chia-Network', repo: 'bladebit', });