From bfa6d00cb68c708378cc7029a5ed11f850aa6e60 Mon Sep 17 00:00:00 2001 From: Daniel Emery Date: Sun, 10 Mar 2024 15:11:19 +0100 Subject: [PATCH] Attempt to fix script import path --- .github/workflows/deploy-release.yml | 4 ++-- .github/workflows/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index d02a925..6d68fc4 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -20,7 +20,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const script = require('./scripts/validate-prerelease.js'); + const script = require('${{ github.workspace }}/.github/workflows/scripts/validate-prerelease.js'); const result = await script({github, context, core}, ${{github.ref_name}}); console.log('Validation complete'); console.log(result); @@ -46,5 +46,5 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const script = require('./scripts/reconcile-release.js'); + const script = require('${{ github.workspace }}/.github/workflows/scripts/reconcile-release.js'); await script({github, context, core}, ${{ steps.validate_deployment.outputs.result.releaseId }}); diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a3df63..613e465 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,5 +47,5 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const createPrerelease = require('./scripts/create-prerelease.js'); + const createPrerelease = require('${{ github.workspace }}/.github/workflows/scripts/create-prerelease.js'); await createPrerelease({github, context, core}, "${{ env.RELEASE_VERSION }}");