8000 Added an input for a release id and updated bash script to handle a s… by wattry · Pull Request #21 · skx/github-action-publish-binaries · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Added an input for a release id and updated bash script to handle a s… #21

Merged
merged 1 commit into from
May 14, 2020
Merged

Added an input for a release id and updated bash script to handle a s… #21

merged 1 commit into from
May 14, 2020

Conversation

wattry
Copy link
Contributor
@wattry wattry commented May 8, 2020

…econd argument for the release id

@skx
Copy link
Owner
skx commented May 14, 2020

Thanks for updating the argument parsing.

However I've realized there is a problem with positional arguments as I've used this script on a lot of projects. e.g. I've got it here:

There you'll see I use a glob puppet-* and that means the script gets invoked as:

 $ script puppet-summary-linux-amd64 puppet-summary-linux-i386  ...

That means we must use getopt. So we'll have a script accept/not the release like so:

 $ script -release=foo arg1
 $ script arg1 arg2 

If you could make a change to use getopt then I'll merge. If not I'll merge and fixup tomorrow rather than leaving this open for too long.

Sorry for only just realizing this, and thank-you once again for the update :)

@skx
Copy link
Owner
skx commented May 14, 2020

I'm an idiot - we can use the environmental variables.

I'll fixup.

@skx skx merged commit faf5941 into skx:master May 14, 2020
@skx
Copy link
Owner
skx commented May 14, 2020

Fixed up in 75ce554

Tested here:

Hope this works for you :)

@wattry
Copy link
Contributor Author
wattry commented May 14, 2020

@skx I'm in the GMT-6 time zone so don't worry I only just woke up. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0