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] <support@github.com>

* 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 <chrismarslender@gmail.com>
This commit is contained in:
dependabot[bot] 2022-03-29 10:34:12 -07:00 committed by GitHub
parent aaba00c354
commit 9a0d4775ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 20 deletions

View File

@ -62,13 +62,13 @@ jobs:
SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}"
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', repo: 'chia-plotter-madmax',
}); });
@ -83,13 +83,13 @@ jobs:
chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34"
# Get the most recent release from bladebit # Get the most recent release from bladebit
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-bladebit' id: 'latest-bladebit'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'bladebit', repo: 'bladebit',
}); });

View File

@ -96,13 +96,13 @@ jobs:
SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}"
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', repo: 'chia-plotter-madmax',
}); });
@ -117,13 +117,13 @@ jobs:
chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34"
# Get the most recent release from bladebit # Get the most recent release from bladebit
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-bladebit' id: 'latest-bladebit'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'bladebit', repo: 'bladebit',
}); });

View File

@ -65,13 +65,13 @@ jobs:
SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}" SECRET: "${{ secrets.INSTALLER_UPLOAD_SECRET }}"
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', repo: 'chia-plotter-madmax',
}); });
@ -86,13 +86,13 @@ jobs:
chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34" chmod +x "$GITHUB_WORKSPACE/madmax/chia_plot_k34"
# Get the most recent release from bladebit # Get the most recent release from bladebit
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-bladebit' id: 'latest-bladebit'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'bladebit', repo: 'bladebit',
}); });

View File

@ -104,13 +104,13 @@ jobs:
p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }} p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }}
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', repo: 'chia-plotter-madmax',
}); });

View File

@ -78,13 +78,13 @@ jobs:
p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }} p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }}
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', repo: 'chia-plotter-madmax',
}); });

View File

@ -105,13 +105,13 @@ jobs:
deactivate deactivate
# Get the most recent release from chia-plotter-madmax # Get the most recent release from chia-plotter-madmax
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-madmax' id: 'latest-madmax'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'chia-plotter-madmax', 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" 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 # Get the most recent release from bladebit
- uses: actions/github-script@v4 - uses: actions/github-script@v6
id: 'latest-bladebit' id: 'latest-bladebit'
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string result-encoding: string
script: | script: |
const releases = await github.repos.listReleases({ const releases = await github.rest.repos.listReleases({
owner: 'Chia-Network', owner: 'Chia-Network',
repo: 'bladebit', repo: 'bladebit',
}); });