-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: log action file path [EDS-269] #3
Conversation
tsup.config.ts
Outdated
esbuildPlugins: [ | ||
{ | ||
name: 'remove-import-zx', | ||
setup(build) { | ||
build.onLoad({ filter: /.*/ }, async (args) => { | ||
const content = await fs.readFile(args.path, 'utf-8'); | ||
|
||
return { | ||
contents: content.replaceAll( | ||
/^import .+ from 'zx';?$/gm, | ||
'', | ||
), | ||
}; | ||
}); | ||
}, | ||
}, | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esbuildPlugins: [ | |
{ | |
name: 'remove-import-zx', | |
setup(build) { | |
build.onLoad({ filter: /.*/ }, async (args) => { | |
const content = await fs.readFile(args.path, 'utf-8'); | |
return { | |
contents: content.replaceAll( | |
/^import .+ from 'zx';?$/gm, | |
'', | |
), | |
}; | |
}); | |
}, | |
}, | |
], | |
esbuildPlugins: [removeZXImports()], |
Maybe? + add explanation why we did this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
actions/log/action.yml
Outdated
@@ -11,4 +11,4 @@ runs: | |||
steps: | |||
- name: Log message | |||
shell: bash | |||
run: npx zx@8 ./dist/index.js --message="${{inputs.message}}" | |||
run: npx zx ./actions/log/dist/index.js --message="${{ inputs.message }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: npx zx ./actions/log/dist/index.js --message="${{ inputs.message }}" | |
run: npx zx@8 ./actions/log/dist/index.js --message="${{ inputs.message }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.