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 }}");