-
Notifications
You must be signed in to change notification settings - Fork 67
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
action.yml compliance #29
Conversation
Hey @chabad360 - Introducing this change will break all existing config files silently. To be able to action this we'd need a guide to explain how to make the change and ensure that we didn't break existing configs. Have you thought about how that change might be introduced? What benefits are there in changing to actions.yml? It's neither required or enforced so the change seems semantic more than anything else. |
Admittedly, I shouldn't have broken existing custom configs (in my defense, it would still just fall back to the existing defaults).
As to why? Well, using an |
In GitHub's changelog, @chabad360 is correct that this is a requirement now: https://github.blog/changelog/2019-10-10-the-github-actions-marketplace-now-requires-an-actions-metadata-file/ |
Thanks for the heads up @lannonbr. We wrote the action long before We'll review this PR and move to get it merged. 👍 @chabad360, is this ready for review from your perspective? |
I think so.
let me know if you find any problems.
…On 12/2/19, Ben Schwarz ***@***.***> wrote:
Thanks for the heads up @lannonbr. We wrote the action long before
`actions.yml` was a concept and GitHub didn't do a super job of alerting
beta users to updates like this one.
We'll review this PR and move to get it merged. 👍
@chabad360, is this ready for review from your perspective?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#29 (comment)
--
Mendel G
chabad360@gmail.com
|
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.
I've left a bunch of questions, comments and required changes. Otherwise this doesn't seem too far off ready to go.
Co-Authored-By: Ben Schwarz <ben@calibreapp.com>
I made some changes, have a look. |
Is this a breaking change? Will existing actions fail or silently fail? |
No.
…On 12/3/19, Peli de Halleux ***@***.***> wrote:
Is this a breaking change? Will existing actions fail or silently fail?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#29 (comment)
--
Mendel G
chabad360@gmail.com
|
The only thing is if someone uses the custom |
It's actually the opposite, and if you were to use both This would similarly be the case if we implement what I suggest here (I'm strongly considering doing it). Basically, I intend not to have any breaking changes with this PR, as that would be a really bad idea... However, your point about documenting the change better (i.e. making it clear the there are no breaking changes) is true, |
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.
Thank you for your patience @chabad360 — I've left a final round of review.
By making these changes we're essentially deprecating the pre-existing configuration method, but it should lead to more clarity overall. 👍 👍 Well done! 🎉
BTW, most of the settings in |
I believe all is ready! |
I created a test repo to take your branch for a spin, but it failed with a missing GITHUB_TOKEN. Any thoughts @chabad360? |
It looks as though github actions read the |
Yup, that would definitely be why... |
If you wouldn't mind the additional commits, it'd be useful to see if github are doing any docker caching. If not we'll have to continue to pre-build @master for image-actions releases. 😒 |
I've just updated my previous comment (spoilers: use the
To my knowledge, nope.
Well, it's automatic anyways and is definitely the most practical option (better than caching, I think), but it would be nice if we could just use the GitHub Package Registry for that (sadly, we can't). |
Aaaaaand, it works!!! |
Looks like we have a small issue to overcome - the YAML quality number arguments probably need to be |
Now it's working.
Yup, that was the issue. |
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.
Thank you for your tireless work on this @chabad360. A huge improvement 🎉 !
Yay! |
Now on to #30! |
If you want to deprecate the old config file I'd say that the new way to specify settings should support all previous settings. Eg. creating progressive jpeg is very important for web images, and the only way to do it currently is via the old config file that is not documented anymore. |
@alexdupre How did one configure progressive JPEGs? |
@alexdupre What do you think of #44? |
Not tested, but looks fine. |
This will make the image-actions action compliant with the current GitHub Actions
action.yml
format for describing actions.This will also make the action easier to configure.