From ef1ebcfbd7ff261357786c2358201b86268e0212 Mon Sep 17 00:00:00 2001 From: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> Date: Thu, 23 Oct 2025 17:04:18 +0530 Subject: [PATCH 1/2] fix(ci): use dynamic imports for actions/github-script scripts --- .github/workflows/build-previews.yml | 2 +- .github/workflows/bump-manifest-version.yml | 2 +- .github/workflows/delete-pr-artifacts.yml | 2 +- .github/workflows/nightly-build.yaml | 2 +- .github/workflows/release-preview.yml | 2 +- .github/workflows/release-stable.yml | 4 ++-- .github/workflows/tests-e2e.yml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-previews.yml b/.github/workflows/build-previews.yml index 787fa4fdc..ed3d25877 100644 --- a/.github/workflows/build-previews.yml +++ b/.github/workflows/build-previews.yml @@ -21,7 +21,7 @@ jobs: id: get-workflow-artifacts with: script: | - import script from './.github/actions/get-workflow-artifacts.ts' + const { default: script } = await import('./.github/actions/get-workflow-artifacts.ts') await script({ github, context, core }) - name: Find comment diff --git a/.github/workflows/bump-manifest-version.yml b/.github/workflows/bump-manifest-version.yml index 9a7f86cab..8f8b85234 100644 --- a/.github/workflows/bump-manifest-version.yml +++ b/.github/workflows/bump-manifest-version.yml @@ -35,7 +35,7 @@ jobs: INPUT_VERSION: ${{ github.event.inputs.version }} with: script: | - import script from './.github/actions/bump-manifest-version.ts' + const { default: script } = await import('./.github/actions/bump-manifest-version.ts') await script({ github, context, core }) - name: Format with Biome diff --git a/.github/workflows/delete-pr-artifacts.yml b/.github/workflows/delete-pr-artifacts.yml index 7e0adbcee..642f194c0 100644 --- a/.github/workflows/delete-pr-artifacts.yml +++ b/.github/workflows/delete-pr-artifacts.yml @@ -18,5 +18,5 @@ jobs: uses: actions/github-script@v8 with: script: | - import script from './.github/actions/delete-artifacts.ts' + const { default: script } = await import('./.github/actions/delete-artifacts.ts') await script({ github, context, core }) diff --git a/.github/workflows/nightly-build.yaml b/.github/workflows/nightly-build.yaml index acdb91c78..508f54f9d 100644 --- a/.github/workflows/nightly-build.yaml +++ b/.github/workflows/nightly-build.yaml @@ -116,7 +116,7 @@ jobs: id: version with: script: | - import script from './.github/actions/get-built-version.ts' + const { default: script } = await import('./.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index cae66b419..055d39876 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -38,7 +38,7 @@ jobs: id: version with: script: | - import script from './.github/actions/get-built-version.ts' + const { default: script } = await import('./.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release # To keep the workflow idempotent. diff --git a/.github/workflows/release-stable.yml b/.github/workflows/release-stable.yml index 384a78887..fa1e3fff7 100644 --- a/.github/workflows/release-stable.yml +++ b/.github/workflows/release-stable.yml @@ -43,7 +43,7 @@ jobs: INPUT_VERSION: ${{ github.event.inputs.version }} with: script: | - import script from './.github/actions/validate-stable-release.ts' + const { default: script } = await import('./.github/actions/validate-stable-release.ts') await script({ github, context, core }) - name: Build @@ -54,7 +54,7 @@ jobs: id: version with: script: | - import script from './.github/actions/get-built-version.ts' + const { default: script } = await import('./.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release # To keep the workflow idempotent. diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index 57e0d41d1..da7de32dd 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -22,7 +22,7 @@ jobs: uses: actions/github-script@v8 with: script: | - import script from './.github/actions/tests-e2e-filter.ts' + const { default: script } = await import('./.github/actions/tests-e2e-filter.ts') await script({ github, context, core }) test-e2e: From 118622e79dc7272457b2c40790cc5de693bd85d3 Mon Sep 17 00:00:00 2001 From: Sid Vishnoi <8426945+sidvishnoi@users.noreply.github.com> Date: Thu, 23 Oct 2025 17:06:39 +0530 Subject: [PATCH 2/2] try absolute import paths --- .github/workflows/build-previews.yml | 2 +- .github/workflows/bump-manifest-version.yml | 2 +- .github/workflows/delete-pr-artifacts.yml | 2 +- .github/workflows/nightly-build.yaml | 2 +- .github/workflows/release-preview.yml | 2 +- .github/workflows/release-stable.yml | 4 ++-- .github/workflows/tests-e2e.yml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-previews.yml b/.github/workflows/build-previews.yml index ed3d25877..1a326af32 100644 --- a/.github/workflows/build-previews.yml +++ b/.github/workflows/build-previews.yml @@ -21,7 +21,7 @@ jobs: id: get-workflow-artifacts with: script: | - const { default: script } = await import('./.github/actions/get-workflow-artifacts.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/get-workflow-artifacts.ts') await script({ github, context, core }) - name: Find comment diff --git a/.github/workflows/bump-manifest-version.yml b/.github/workflows/bump-manifest-version.yml index 8f8b85234..0cb7056d2 100644 --- a/.github/workflows/bump-manifest-version.yml +++ b/.github/workflows/bump-manifest-version.yml @@ -35,7 +35,7 @@ jobs: INPUT_VERSION: ${{ github.event.inputs.version }} with: script: | - const { default: script } = await import('./.github/actions/bump-manifest-version.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/bump-manifest-version.ts') await script({ github, context, core }) - name: Format with Biome diff --git a/.github/workflows/delete-pr-artifacts.yml b/.github/workflows/delete-pr-artifacts.yml index 642f194c0..15e7d8b28 100644 --- a/.github/workflows/delete-pr-artifacts.yml +++ b/.github/workflows/delete-pr-artifacts.yml @@ -18,5 +18,5 @@ jobs: uses: actions/github-script@v8 with: script: | - const { default: script } = await import('./.github/actions/delete-artifacts.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/delete-artifacts.ts') await script({ github, context, core }) diff --git a/.github/workflows/nightly-build.yaml b/.github/workflows/nightly-build.yaml index 508f54f9d..89607b10a 100644 --- a/.github/workflows/nightly-build.yaml +++ b/.github/workflows/nightly-build.yaml @@ -116,7 +116,7 @@ jobs: id: version with: script: | - const { default: script } = await import('./.github/actions/get-built-version.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index 055d39876..595eee573 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -38,7 +38,7 @@ jobs: id: version with: script: | - const { default: script } = await import('./.github/actions/get-built-version.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release # To keep the workflow idempotent. diff --git a/.github/workflows/release-stable.yml b/.github/workflows/release-stable.yml index fa1e3fff7..027760f2b 100644 --- a/.github/workflows/release-stable.yml +++ b/.github/workflows/release-stable.yml @@ -43,7 +43,7 @@ jobs: INPUT_VERSION: ${{ github.event.inputs.version }} with: script: | - const { default: script } = await import('./.github/actions/validate-stable-release.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/validate-stable-release.ts') await script({ github, context, core }) - name: Build @@ -54,7 +54,7 @@ jobs: id: version with: script: | - const { default: script } = await import('./.github/actions/get-built-version.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/get-built-version.ts') await script({ github, context, core }) - name: Delete existing release # To keep the workflow idempotent. diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index da7de32dd..2377b6668 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -22,7 +22,7 @@ jobs: uses: actions/github-script@v8 with: script: | - const { default: script } = await import('./.github/actions/tests-e2e-filter.ts') + const { default: script } = await import('${{ github.workspace }}/.github/actions/tests-e2e-filter.ts') await script({ github, context, core }) test-e2e: