Skip to content

Commit

Permalink
Attempt to fix script import path
Browse files Browse the repository at this point in the history
  • Loading branch information
danielemery committed Mar 10, 2024
1 parent 700c693 commit bfa6d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 }});
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}");

0 comments on commit bfa6d00

Please sign in to comment.