infra: Create workflow which manages GitHub labels

GitHub labels will be managed by the .github/labels.yml file.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim Ansell 2020-07-02 10:33:23 -07:00 committed by Tim 'mithro' Ansell
parent 768de1a88b
commit 8366fb26b5
1 changed files with 21 additions and 0 deletions

21
.github/workflows/manage-labels.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Manage Labels
on: push
jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Run Labeler
if: success()
uses: crazy-max/ghaction-github-labeler@v2
with:
yaml_file: .github/labels.yml
skip_delete: true
dry_run: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}