add labeler action

This commit is contained in:
zowoq 2022-11-04 22:03:00 +10:00
parent 53dea1c0e7
commit 4297a0369c
2 changed files with 19 additions and 0 deletions
.github

5
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,5 @@
"merge with bors":
- terraform/**/*
"terraform":
- terraform/**/*

14
.github/workflows/labels.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: "labels"
on:
pull_request_target:
jobs:
labels:
runs-on: ubuntu-latest
if: github.repository == 'nix-community/infra'
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true