Skip to content

Commit

Permalink
fix ENOENT error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Feb 3, 2023
1 parent 1943bc2 commit 5c156c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/development_freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ jobs:
archive_format: 'zip',
});
const fs = require('fs');
fs.writeFileSync('${{ github.workspace }}/${{ env.PULL_REQUEST_METADATA_DIR }}/${{ env.PULL_REQUEST_METADATA_FILE }}.zip', Buffer.from(download.data));
fs.writeFileSync('${{ github.workspace }}/${{ env.PULL_REQUEST_METADATA_FILE }}.zip', Buffer.from(download.data));
- run: unzip ${{ env.PULL_REQUEST_METADATA_DIR }}/${{ env.PULL_REQUEST_METADATA_FILE }}.zip
- run: unzip ${{ env.PULL_REQUEST_METADATA_FILE }}.zip

- name: 'Get Pull Request number'
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const pr_number = Number(fs.readFileSync('./${{ env.PULL_REQUEST_METADATA_DIR }}/${{ env.PULL_REQUEST_METADATA_FILE }}'));
const pr_number = Number(fs.readFileSync('./${{ env.PULL_REQUEST_METADATA_FILE }}'));
core.exportVariable('pr_number', pr_number);
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 5c156c9

Please sign in to comment.