-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (39 loc) · 1.3 KB
/
LabelSyncer.yml
File metadata and controls
44 lines (39 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This workflow syncs GitHub labels to the integrating repository.
#
# The labels are declaratively defined in .github/Labels.yml.
#
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
# For more information, see:
# https://github.com/EndBug/label-sync
name: Mu DevOps Git Label Sync Workflow
on:
workflow_call:
inputs:
# Note: The caller can set a command to an empty string to skip that command
local_config_file:
description: 'Repo relative path to a repo-specific label config file'
default: ''
required: false
type: string
jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- name: Generate Token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.MU_ACCESS_APP_ID }}
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Sync Labels
uses: EndBug/label-sync@v2
with:
config-file: |
https://raw.githubusercontent.com/microsoft/mu_devops/main/.github/Labels.yml
${{ inputs.local_config_file }}
delete-other-labels: false
token: ${{ steps.app-token.outputs.token }}