-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
create-or-update-issue: add action #588
Conversation
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.
Looks good! I think it might be nice to make this a little higher level such that it will also autoclose an issue on success and open a new issue on failure. Maybe even post more comments on repeated failures? Thoughts?
Sorry, have been a little bit busy this week. I'll get back to this soon.
How about this: we turn this into an action that's able to perform the following depending on
With usage like: - uses: Homebrew/actions/create-issue@master
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
update-existing: true
close-existing: true
dependent-step-conclusion: ${{ steps.deploy.conclusion }}
title: Deployment failed
body: Issue body (or comment to post if issue already exists)
labels: label1,label2
assignees: user1,user2 |
@ZhongRuoyu This seems great! |
e6931fc
to
42a7fa0
Compare
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.
Looks great!
Related: Homebrew/homebrew-core#190657 (comment) Co-authored-by: Sean Molenaar <[email protected]> Co-authored-by: Mike McQuaid <[email protected]> Co-authored-by: Bo Anderson <[email protected]>
b1b9bf7
to
5b99a85
Compare
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.
Looks great, thanks @ZhongRuoyu! After merging: could you update formulae.brew.sh and homebrew/core to use this action and, if you're feeling really generous, add to the Homebrew/brew release workflow that uploads packages 🙇🏻
Sure! I'll first do formulae.brew.sh as that's run most frequently. If that works well I'll roll this out to more places. |
This was added in Homebrew/actions#588. It simplifies the workflow, and reduces the number of API calls.
This was added in Homebrew/actions#588. It simplifies the workflow, and reduces the number of API calls.
This uses the `Homebrew/actions/create-or-update-issue` action added in Homebrew/actions#588 to create an issue when the publish fails for a release. It also automatically updates the issue on repeated failures, and closes the issue when the latest workflow run succeeds.
This was added in Homebrew/actions#588. It can also automatically update an existing issue on repeated failures, or close the issue when the latest workflow run is successful.
This was added in Homebrew/actions#588. It can also automatically update an existing issue on repeated failures, or close the issue when the latest workflow run is successful.
This was added in Homebrew/actions#588. It simplifies the workflow, and reduces the number of API calls. See also: Homebrew/formulae.brew.sh@f444253.
Related: Homebrew/homebrew-core#190657 (comment)