feat: Enable sync-labels workflow for all terraform-azurerm-avm-
repositories
#54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Synchronize GitHub Labels Across Repositories
Similiar to Azure/bicep-registry-modules#1285 this pull request introduces a new GitHub Actions workflow that synchronizes GitHub labels (https://azure.github.io/Azure-Verified-Modules/governance/avm-standard-github-labels.csv) across all repositories starting with
terraform-azurerm-avm-
in the Azure organization. The workflow uses theSet-AvmGitHubLabels.ps1
script from the Azure Verified Modules project to manage the labels.The workflow is divided into two jobs:
getrepos
: This job uses the GitHub GraphQL API to fetch the names of all repositories in the Azure organization. The names are stored in a JSON array, which is passed to the next job as an output.sync-labels
: This job runs theSet-AvmGitHubLabels.ps1
script for each repository. The script is run in a PowerShell Core (pwsh
) shell. The repository name is passed to the script as an argument.The workflow uses a matrix strategy to run the
sync-labels
job in parallel for each repository. Theterraform-azurerm-avm-template
repository is excluded from the matrix.