From 6bb3b818e4dcd91fc6ce2593d05d9f30f74a750b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 25 May 2025 19:52:41 +0000 Subject: [PATCH 1/2] Bump the actions group with 3 updates Bumps the actions group with 3 updates: [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter), [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [actions/github-script](https://github.com/actions/github-script). Updates `release-drafter/release-drafter` from 5 to 6 - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) Updates `tj-actions/changed-files` from 45.0.4 to 46.0.5 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/4edd678ac3f81e2dc578756871e4d00c19191daf...ed68ef82c095e0d48ec87eccea555d944a631a4c) Updates `actions/github-script` from 0.9.0 to 7.0.1 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/0.9.0...v7.0.1) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: tj-actions/changed-files dependency-version: 46.0.5 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/github-script dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/release-drafter.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/windows-test.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 50e6b7cdb..b2a14c2ba 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-22.04 steps: # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@v5 + - uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aac93f6ca..9ef9da980 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: - id: changed-files name: Get changed files - uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45.0.4 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 - id: set-modified-modules name: Set all modified modules diff --git a/.github/workflows/windows-test.yml b/.github/workflows/windows-test.yml index 05b2162bb..64754966e 100644 --- a/.github/workflows/windows-test.yml +++ b/.github/workflows/windows-test.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false steps: - name: Create pending status - uses: actions/github-script@0.9.0 + uses: actions/github-script@v7.0.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -43,7 +43,7 @@ jobs: run: npm run test:ci - name: Create success status - uses: actions/github-script@0.9.0 + uses: actions/github-script@v7.0.1 if: success() with: github-token: ${{secrets.GITHUB_TOKEN}} @@ -58,7 +58,7 @@ jobs: }) - name: Create failure status - uses: actions/github-script@0.9.0 + uses: actions/github-script@v7.0.1 if: failure() with: github-token: ${{secrets.GITHUB_TOKEN}} From cc189cdbf2b0a025fa3ab7bf8aaa34fa5b3940c8 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Sun, 25 May 2025 21:02:31 +0100 Subject: [PATCH 2/2] Update scripts --- .github/workflows/windows-test.yml | 58 ++++++++++++++++-------------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/.github/workflows/windows-test.yml b/.github/workflows/windows-test.yml index 64754966e..18a0f9097 100644 --- a/.github/workflows/windows-test.yml +++ b/.github/workflows/windows-test.yml @@ -15,14 +15,16 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.repos.createStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'pending', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'Test Windows', - }) + async ({ github, context }) => { + await github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'pending', + target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + context: 'Test Windows', + }); + } - name: Checkout uses: actions/checkout@v4 @@ -46,28 +48,32 @@ jobs: uses: actions/github-script@v7.0.1 if: success() with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.repos.createStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'success', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'Test Windows', - }) + async ({ github, context }) => { + await github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'success', + target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + context: 'Test Windows', + }); + } - name: Create failure status uses: actions/github-script@v7.0.1 if: failure() with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.repos.createStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'failure', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'Test Windows', - }) + async ({ github, context }) => { + await github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'failure', + target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + context: 'Test Windows', + }); + } \ No newline at end of file