Skip to content
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

feat: Enable sync-labels workflow for all terraform-azurerm-avm- repositories #54

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

segraef
Copy link
Contributor

@segraef segraef commented Mar 15, 2024

Synchronize GitHub Labels Across Repositories

sync-labels

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 the Set-AvmGitHubLabels.ps1 script from the Azure Verified Modules project to manage the labels.

The workflow is divided into two jobs:

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

  2. sync-labels: This job runs the Set-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. The terraform-azurerm-avm-template repository is excluded from the matrix.

@segraef segraef changed the title feat: Enable sync-labels workflow feat: Enable sync-labels workflow for all terraform-azurerm-avm- repositories Mar 15, 2024
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