Skip to content

Commit

Permalink
fix: resolve working dir bug (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
FireTable authored May 24, 2023
1 parent 4c343d7 commit 31a5327
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15662,7 +15662,7 @@ async function run() {

let workingDirectory = core.getInput('working-directory') || '/';

workingDirectory = path.join('', workingDirectory);
workingDirectory = path.join('/', workingDirectory, '/');

const currentVersionURL = `https://raw.githubusercontent.com/${github.context.repo.owner}/${github.context.repo.repo}/${baseSHA}${workingDirectory}version`;
core.info(`current version url: ${currentVersionURL}`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "action-version-check",
"version": "0.0.2",
"version": "0.0.3",
"description": "Check if the current version is compliant with the specification",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function run() {

let workingDirectory = core.getInput('working-directory') || '/';

workingDirectory = path.join('', workingDirectory);
workingDirectory = path.join('/', workingDirectory, '/');

const currentVersionURL = `https://raw.githubusercontent.com/${github.context.repo.owner}/${github.context.repo.repo}/${baseSHA}${workingDirectory}version`;
core.info(`current version url: ${currentVersionURL}`);
Expand Down

0 comments on commit 31a5327

Please sign in to comment.