-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Feature/Idea]: Allow WinGet Releaser GitHub Action to run on any event #1
Comments
Hello @russellbanks, thank you for submitting an issue! |
I had already observed this issue on a couple of other repositories too, and am already working on a new retry logic. The action is limited to very specific event types to prevent spamming of pull requests at winget-pkgs repository. BTW, thanks for telling me about Updated workflow (work-in-progress): https://github.com/vedantmgoyal2009/vedantmgoyal2009/blob/test/winget-pkgs-automation/releaser-action/action.yml |
@allcontributors please add @russellbanks for ideas |
I've put up a pull request to add @russellbanks! 🎉 |
@russellbanks I was testing the action with the Maybe the new retry logic can work for you, and if I will be able to find a way to do it without increasing the number of required inputs, I will surely add it. For now, I will keep it for the future. |
Thank you for looking into this! I've had a look at the new retry logic and the wait time is definitely long enough for my use case. |
Thanks! I will push it to v1.0.0 after some more testing. |
I've tried out the longer wait time it works much better, thank you! |
@russellbanks, I've found a way to make the action work on any event. I'll update the action when I can get some free time 👍🏻 |
Since this original issue, I have actually been achieveing this by doing |
A new input will be required if the workflow is not running on the release event: on:
push:
tags:
- v* # not exactly, you get the idea... the value for |
What would you like to see changed/added?
The Winget releaser action can currently only run if the workflow is a release event and a released event type, meaning the workflow has to look like this:
In my project, I have a workflow that runs whenever there's a new release, builds the app, and then uploads the artifacts to the release. The Windows run takes the longest usually, up to 5 minutes. This isn't ideal as the WinGet Releaser action has a wait time of 2.5 minutes before it should fail because it is unable to find the correct artifact, so I can pretty much guarantee that I am going to have to re-run it every time.
Therefore, to work around this, I could use the on: workflow_run to ensure that it will run after the Windows artifacts have been built and uploaded:
Therefore, allowing the WinGet Releaser GitHub Action to run on the workflow_run event, I won't have to re-run the action every time I make a release.
The text was updated successfully, but these errors were encountered: