Skip to content

Feat: Support include/exclude in github action#135

Merged
arnauorriols merged 12 commits intodenoland:mainfrom
osdiab:patch-1
Nov 29, 2023
Merged

Feat: Support include/exclude in github action#135
arnauorriols merged 12 commits intodenoland:mainfrom
osdiab:patch-1

Conversation

@osdiab
Copy link
Copy Markdown
Contributor

@osdiab osdiab commented Sep 11, 2022

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 says 0 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

I haven't tested this yet.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Sep 11, 2022

CLA assistant check
All committers have signed the CLA.

@osdiab osdiab marked this pull request as ready for review September 11, 2022 11:24
@tanishqkancharla
Copy link
Copy Markdown

Still waiting on this, this would be great.

action/index.js Outdated
const entries = await walk(cwd, cwd, assets, {
include: undefined,
exclude: undefined,
include: include ? include.split(",").map(pattern => normalize(pattern)): undefined,
Copy link
Copy Markdown
Member

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.

@arnauorriols
Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

@arnauorriols arnauorriols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arnauorriols arnauorriols changed the title WIP: Support include/exclude in github action Feat: Support include/exclude in github action Nov 29, 2023
@arnauorriols arnauorriols merged commit 013e2c2 into denoland:main Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants