Skip to content

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

Open
wants to merge 6 commits into
base: draft-v8
Choose a base branch
from
Open

Separate tasks in our workflows #1269

wants to merge 6 commits into from

Conversation

BillWagner
Copy link
Member

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).

BillWagner and others added 6 commits February 10, 2025 09:32
Make the initial code to create a check run using a chained workflow.
Copy link
Contributor

@jskeet jskeet left a 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);
Copy link
Contributor

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);

Copy link
Contributor

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants