-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Add support for make_latest property #304
Conversation
Thanks! There's some nuance in the docs that give me pause for the default though
Does this mean those creating drafts and prereleases would start getting errors with this actions new default?
I'm wondering if legacy is the better default for backwards compat or event better leaving it undefined as a default unless a user specifies it explicitly to guarantees compatibility with current behavior |
Leaving undefined sounds probably better I agree. I'll add a change for that. |
@softprops I've adjusted the behaviour to default to |
Hi, will this PR be merged? |
Would also like to see this feature. |
I'm also interested in this feature |
@softprops any updates on this? :) |
@softprops Please, can your merge this PR? That would be great! Thank you! |
any news on this? |
Could support to update an existing tag with make_latest be added? Or would this would to set an existing tag to the latest? #385 |
Any news on this ? That would be great ! |
@samueljseay thanks for the pull and sorry for the delay |
this should be available in the new v2 tag |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [softprops/action-gh-release](https://togithub.com/softprops/action-gh-release) | action | patch | `v2.0.0` -> `v2.0.1` | --- ### Release Notes <details> <summary>softprops/action-gh-release (softprops/action-gh-release)</summary> ### [`v2.0.1`](https://togithub.com/softprops/action-gh-release/releases/tag/v2.0.1) [Compare Source](https://togithub.com/softprops/action-gh-release/compare/v2.0.0...v2.0.1) - Add support for make_latest property [https://github.com/softprops/action-gh-release/pull/304](https://togithub.com/softprops/action-gh-release/pull/304) via [@​samueljseay](https://togithub.com/samueljseay) - Fail run if files setting contains invalid patterns [https://github.com/softprops/action-gh-release/pull/384](https://togithub.com/softprops/action-gh-release/pull/384) via [@​rpdelaney](https://togithub.com/rpdelaney) - Add support for proxy env variables (don't use node-fetch) [https://github.com/softprops/action-gh-release/pull/386](https://togithub.com/softprops/action-gh-release/pull/386)/ via [@​timor-raiman](https://togithub.com/timor-raiman) - Suppress confusing warning when input_files is empty [https://github.com/softprops/action-gh-release/pull/389](https://togithub.com/softprops/action-gh-release/pull/389) via [@​Drowze](https://togithub.com/Drowze) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Closes #297
This PR supports the
make_latest
property of the releases REST API.I've tested this on my fork and it works well for me. I've kept the behaviour with previous versions by defaulting to true for this property.
I also:
npm audit fix
to fix a high risk npm security flagPlease note:
make_latest
is oddly a string which is why parseConfig returns a string for this property. See the docs.