From 5070bfad36335f8ac21dba5eb162c20beb28f589 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 27 Jun 2023 16:42:40 -0700 Subject: [PATCH] Add team/user store to pipeline-owners-extracton (#6419) * Add team/user store to pipeline-owners-extracton * Fix working directory * No, really fix the working directory this time --- eng/pipelines/pipeline-owners-extraction.yml | 7 +++++++ tools/github-team-user-store/README.md | 3 +++ 2 files changed, 10 insertions(+) diff --git a/eng/pipelines/pipeline-owners-extraction.yml b/eng/pipelines/pipeline-owners-extraction.yml index 853bf150e5e..9191900b992 100644 --- a/eng/pipelines/pipeline-owners-extraction.yml +++ b/eng/pipelines/pipeline-owners-extraction.yml @@ -40,3 +40,10 @@ stages: displayName: Publish pipelineOwners artifact artifact: pipelineOwners condition: succeededOrFailed() + + - pwsh: | + dotnet run --blobStorageURI "https://azuresdkartifacts.blob.core.windows.net/azure-sdk-write-teams/azure-sdk-write-teams-blob?$(azuresdkartifacts-azure-sdk-write-teams-sas)" + displayName: 'Fetch and store team/user data' + workingDirectory: tools/github-team-user-store/GitHubTeamUserStore/GitHubTeamUserStore + env: + GITHUB_TOKEN: $(azuresdkartifacts-azure-sdk-write-teams-github-pat) diff --git a/tools/github-team-user-store/README.md b/tools/github-team-user-store/README.md index 14d84adbbed..c340ca097fc 100644 --- a/tools/github-team-user-store/README.md +++ b/tools/github-team-user-store/README.md @@ -26,3 +26,6 @@ The json blob is read anonymously. The json blob is created from the dictionary var list = JsonSerializer.Deserialize>>>(rawJson); var TeamUSerDictionary = list.ToDictionary((keyItem) => keyItem.Key, (valueItem) => valueItem.Value); ``` + +### The pipeline where this will run +This will run as part of the [pipeline-owners-extracton](https://dev.azure.com/azure-sdk/internal/_build?definitionId=5112&_a=summary) pipeline. \ No newline at end of file