Skip to content
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

Merged
merged 12 commits into from
Nov 29, 2023

Conversation

osdiab
Copy link
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

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

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,
Copy link
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
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
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
11 checks passed
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