avm.platform.sync-repo-labels-from-csv #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for syncing CSV labels to GitHub Labels | |
name: avm.platform.sync-repo-labels-from-csv | |
on: | |
schedule: | |
- cron: 45 11 * * * # Run daily at 3:45 AM PST | |
workflow_dispatch: {} | |
# Allow one concurrent deployment | |
concurrency: | |
group: "labels" | |
cancel-in-progress: true | |
permissions: | |
issues: write | |
pull-requests: write | |
defaults: | |
run: | |
shell: pwsh | |
jobs: | |
sync-labels: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Sync AVM Labels To Repos GitHub Labels | |
run: | | |
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 "${{ github.repository }}" -CreateCsvLabelExports $false -RemoveExistingLabels $false -NoUserPrompts $true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |