From 4e68a265ed0c78cdaf6eb9abb6b9e1c22f79e7e2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 30 Jan 2024 13:31:56 +0100 Subject: [PATCH] gha: update to actions/github-script@v7 - full diff: https://github.com/actions/github-script/compare/v6.4.1...v7.0.1 breaking changes: https://github.com/actions/github-script?tab=readme-ov-file#v7 > Version 7 of this action updated the runtime to Node 20 > https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions > > All scripts are now run with Node 20 instead of Node 16 and are affected > by any breaking changes between Node 16 and 20 > > The previews input now only applies to GraphQL API calls as REST API previews > are no longer necessary > https://github.blog/changelog/2021-10-14-rest-api-preview-promotions/. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit fb53ee6ba346c8756cd74dca91865fdd18e56bb7) Signed-off-by: Sebastiaan van Stijn --- .github/workflows/.dco.yml | 4 ++-- .github/workflows/.test-prepare.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/.dco.yml b/.github/workflows/.dco.yml index bfdbb28146..22431e0fb4 100644 --- a/.github/workflows/.dco.yml +++ b/.github/workflows/.dco.yml @@ -20,14 +20,14 @@ jobs: fetch-depth: 0 - name: Dump context - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | console.log(JSON.stringify(context, null, 2)); - name: Get base ref id: base-ref - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: result-encoding: string script: | diff --git a/.github/workflows/.test-prepare.yml b/.github/workflows/.test-prepare.yml index 134040397f..2b800c7f71 100644 --- a/.github/workflows/.test-prepare.yml +++ b/.github/workflows/.test-prepare.yml @@ -22,7 +22,7 @@ jobs: - name: Create matrix id: set - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | let matrix = ['graphdriver'];