Skip to content

Commit

Permalink
Enable Label Sync GitHub Action (#62)
Browse files Browse the repository at this point in the history
## Description

Adds an action to automatically sync labels used in this repository
from a centralized file in Project Mu DevOps.

https://github.com/microsoft/mu_devops

New labels should be added to the `Labels.yml` file in mu_devops.

Repo-specific labels are allowed to be defined. Those can either be
created in a repo-local config YAML file (preferred) or manually
in the "Labels" section of the repo.

- [ ] Breaking change?
- Will this change break pre-existing builds or functionality without
action being taken?
  **No**

## How This Was Tested

On fork repositories.

## Integration Instructions

Now downstream integration required, only impacts this repo

Repo users should understand label definitions and read instructions
noted in this change regarding how to modify labels in the future.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki authored Nov 29, 2022
1 parent d9f3cb6 commit 33a3788
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow syncs GitHub labels to the common set of labels defined in Mu DevOps.
#
# All repos should sync at the same time.
# '0 0,12 * * *''
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#

name: Sync GitHub Labels

on:
schedule:
# At minute 0 past hour 0 and 12
# https://crontab.guru/#0_0,12_*_*_*
- cron: '0 0,12 * * *'
workflow_dispatch:

jobs:
sync:
uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@main

0 comments on commit 33a3788

Please # to comment.