-
Notifications
You must be signed in to change notification settings - Fork 89
Separate tasks in our workflows #1269
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
base: draft-v8
Are you sure you want to change the base?
Conversation
Make the initial code to create a check run using a chained workflow.
Co-authored-by: David Pine <[email protected]>
Co-authored-by: David Pine <[email protected]>
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.
Can't say I entirely follow this, but if it works, that's fine by me :)
@@ -61,7 +61,7 @@ static async Task<int> Main(string owner, string repo, bool dryrun =false) | |||
{ | |||
if ((token is not null) && (headSha is not null)) | |||
{ | |||
await logger.BuildCheckRunResult(token, owner, repo, headSha); | |||
var annotations = await logger.BuildCheckRunResult(token, owner, repo, headSha); |
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.
Revert this change, as it appears to be unused? (Or emit the annotations somewhere?)
await core.GroupAsync("Writing run outputs", async () => | ||
{ | ||
await core.SetOutputAsync("check_name", title, JsonCheckRunAnnotationSerializerContext.Default.String); | ||
|
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.
Maybe group these into pairs of lines (so remove the blank line between the two check_name-related lines, and then between the two conclusion-related lines, etc.)
The task that writes statuses requires different rights than the task that executes the tools. So, separate these into separate tasks.
Replace #1257 (This initial version can't be run from a fork).