diff --git a/.github/workflows/build-previews.yml b/.github/workflows/build-previews.yml index 787fa4fdc..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: | - import script from './.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 9a7f86cab..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: | - import script from './.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 7e0adbcee..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: | - import script from './.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 acdb91c78..89607b10a 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.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 cae66b419..595eee573 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.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 384a78887..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: | - import script from './.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: | - import script from './.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 57e0d41d1..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: | - import script from './.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: