microsoft / microsoft/typespec

Consider Decoupling the Submit-AzureSdkForNetPr Task into Smaller SubTasks

Open
#10,752 1 comment 0 reactions 0 assignees View on GitHub
emitter:client:csharp feature
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

In https://github.com/microsoft/typespec/blob/main/packages/http-client-csharp/eng/pipeline/publish.yml, we run the `login-to-github.yml` template job to authenticate before we run the Submit-AzureSdkForNetPr.ps1 script. The authenticated token is only valid for a few minutes, and the regen job usually takes at most an hour. Rather than having to request a new token inside of the script itself before we call `git push` we should consider splitting the script up into multiple smaller tasks:

1. Regenerate libraries
2. Commit changes
3. Call auth script to fetch token
4. Call `git push`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.