Update actions/github-script action to v7 (#4738)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-03-27 13:00:00 +00:00
committed by GitHub
parent 0a5fba7a7e
commit 6d94d00b98

View File

@ -32,7 +32,7 @@ jobs:
uses: ./.github/actions/setup uses: ./.github/actions/setup
- id: state - id: state
name: Get state name: Get state
uses: actions/github-script@v6 uses: actions/github-script@v7
env: env:
TRIGGERING_ACTOR: ${{ github.triggering_actor }} TRIGGERING_ACTOR: ${{ github.triggering_actor }}
with: with:
@ -66,7 +66,7 @@ jobs:
name: Create branch with release candidate name: Create branch with release candidate
run: bash scripts/release/workflow/start.sh run: bash scripts/release/workflow/start.sh
- name: Re-run workflow - name: Re-run workflow
uses: actions/github-script@v6 uses: actions/github-script@v7
env: env:
REF: ${{ steps.start.outputs.branch }} REF: ${{ steps.start.outputs.branch }}
with: with:
@ -89,7 +89,7 @@ jobs:
if: needs.state.outputs.is_prerelease == 'true' if: needs.state.outputs.is_prerelease == 'true'
run: bash scripts/release/workflow/exit-prerelease.sh run: bash scripts/release/workflow/exit-prerelease.sh
- name: Re-run workflow - name: Re-run workflow
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: await require('./scripts/release/workflow/rerun.js')({ github, context }) script: await require('./scripts/release/workflow/rerun.js')({ github, context })
@ -108,7 +108,7 @@ jobs:
- name: Set up environment - name: Set up environment
uses: ./.github/actions/setup uses: ./.github/actions/setup
- name: Set release title - name: Set release title
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
result-encoding: string result-encoding: string
script: await require('./scripts/release/workflow/set-changesets-pr-title.js')({ core }) script: await require('./scripts/release/workflow/set-changesets-pr-title.js')({ core })
@ -154,7 +154,7 @@ jobs:
TARBALL: ${{ steps.pack.outputs.tarball }} TARBALL: ${{ steps.pack.outputs.tarball }}
TAG: ${{ steps.pack.outputs.tag }} TAG: ${{ steps.pack.outputs.tag }}
- name: Create Github Release - name: Create Github Release
uses: actions/github-script@v6 uses: actions/github-script@v7
env: env:
PRERELEASE: ${{ needs.state.outputs.is_prerelease }} PRERELEASE: ${{ needs.state.outputs.is_prerelease }}
with: with:
@ -200,7 +200,7 @@ jobs:
git checkout -B "$MERGE_BRANCH" "$GITHUB_REF_NAME" git checkout -B "$MERGE_BRANCH" "$GITHUB_REF_NAME"
git push -f origin "$MERGE_BRANCH" git push -f origin "$MERGE_BRANCH"
- name: Create PR back to master - name: Create PR back to master
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: | script: |
await github.rest.pulls.create({ await github.rest.pulls.create({