-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (33 loc) · 996 Bytes
/
meta-sync-labels.yaml
File metadata and controls
37 lines (33 loc) · 996 Bytes
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
---
name: "Meta Sync labels"
on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yaml"]
permissions:
actions: read
contents: read
issues: write
pull-requests: write
jobs:
labels:
name: Sync Labels
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Set up git repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Sync Labels
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
with:
config-file: .github/labels.yaml
token: "${{ steps.app-token.outputs.token }}"
delete-other-labels: true