-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feat: Support include/exclude in github action #135
Conversation
I haven't tested this yet.
Still waiting on this, this would be great. |
action/index.js
Outdated
@@ -72,8 +75,8 @@ async function main() { | |||
core.debug(`Discovering assets in "${cwd}"`); | |||
const assets = new Map(); | |||
const entries = await walk(cwd, cwd, assets, { | |||
include: undefined, | |||
exclude: undefined, | |||
include: include ? include.split(",").map(pattern => normalize(pattern)): undefined, |
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.
Newline separated strings is the defacto-standard workaround to express arrays in GH action parameters. core.getMultilineInput()
handles splitting and trimming for you.
It's preferrable as there might be array parameters we want to add in the future that might not play as well with the comma-separated approach.
Thank you so much for your contribution @osdiab, and appologies for taking so long to get our attention to it! I'm going to merge it now. |
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.
LGTM
I haven't tested this yet.OK I think this is working? but the display of how many bytes it's uploading seems to be wrong, always says0 bytes
on my project now when I have this, but the deploys are working much faster now that I can declare what to include/exclude. It does appear to work!Resolves #100
Resolves #171
Resolves #181