From 5c7db79b995184f5eb57fecaf2c92c76124187bf Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Fri, 15 Mar 2024 18:58:44 +1000 Subject: [PATCH 1/3] Fix Set-AvmGitHubLabels.ps1 script invocation --- .github/workflows/repo-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/repo-labels.yml b/.github/workflows/repo-labels.yml index e95618e..189bc6f 100644 --- a/.github/workflows/repo-labels.yml +++ b/.github/workflows/repo-labels.yml @@ -70,7 +70,7 @@ jobs: # "Accept" = "application/vnd.github.v3+json" # } Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/Azure-Verified-Modules/main/docs/static/scripts/Set-AvmGitHubLabels.ps1" -OutFile "./Set-AvmGitHubLabels.ps1" - # ./Set-AvmGitHubLabels.ps1 -RepositoryName "${{ matrix.repo }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true + ./Set-AvmGitHubLabels.ps1 -RepositoryName "${{ matrix.repo }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true echo ${{ matrix.repo }} env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 80f498d4890bf04907a4d9102aedf5699c4e4d2c Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Fri, 15 Mar 2024 19:01:46 +1000 Subject: [PATCH 2/3] Update sync labels job in repo-labels.yml --- .github/workflows/repo-labels.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/repo-labels.yml b/.github/workflows/repo-labels.yml index 189bc6f..ec3aa9d 100644 --- a/.github/workflows/repo-labels.yml +++ b/.github/workflows/repo-labels.yml @@ -46,8 +46,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - governance: - name: governance + sync-labels: + name: sync labels runs-on: ubuntu-latest needs: getrepos env: @@ -62,7 +62,7 @@ jobs: - repo: "terraform-azurerm-avm-template" fail-fast: false steps: - - name: sync labels + - name: run avm github labels script shell: pwsh run: | # $headers = @{ @@ -70,7 +70,7 @@ jobs: # "Accept" = "application/vnd.github.v3+json" # } Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/Azure-Verified-Modules/main/docs/static/scripts/Set-AvmGitHubLabels.ps1" -OutFile "./Set-AvmGitHubLabels.ps1" - ./Set-AvmGitHubLabels.ps1 -RepositoryName "${{ matrix.repo }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true + ./Set-AvmGitHubLabels.ps1 -RepositoryName "Azure/${{ matrix.repo }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true echo ${{ matrix.repo }} env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 72a892c415c01abd645fbb993b1ff303a7444e21 Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Fri, 15 Mar 2024 19:17:19 +1000 Subject: [PATCH 3/3] Update sync-labels job name in repo-labels.yml --- .github/workflows/repo-labels.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/repo-labels.yml b/.github/workflows/repo-labels.yml index ec3aa9d..76f8667 100644 --- a/.github/workflows/repo-labels.yml +++ b/.github/workflows/repo-labels.yml @@ -47,7 +47,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} sync-labels: - name: sync labels + name: sync runs-on: ubuntu-latest needs: getrepos env: @@ -65,14 +65,9 @@ jobs: - name: run avm github labels script shell: pwsh run: | - # $headers = @{ - # "Authorization" = "Bearer $GITHUB_TOKEN" - # "Accept" = "application/vnd.github.v3+json" - # } Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/Azure-Verified-Modules/main/docs/static/scripts/Set-AvmGitHubLabels.ps1" -OutFile "./Set-AvmGitHubLabels.ps1" ./Set-AvmGitHubLabels.ps1 -RepositoryName "Azure/${{ matrix.repo }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true echo ${{ matrix.repo }} env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.USER_PAT }}