[CI] Move check_labels to github actions (#2415)

* move lib.sh to common dir

* make check-labels a github action

* check out the repo

* fix secrets

* add labelled PR type

* remove check-labels job from gitlab

* trigger on unlabelling also
This commit is contained in:
Martin Pugh
2021-02-10 18:50:49 +01:00
committed by GitHub
parent 800126d4e1
commit 013b271359
9 changed files with 40 additions and 27 deletions
+16
View File
@@ -0,0 +1,16 @@
name: Check labels
on:
pull_request:
types: [labeled, opened, synchronize, unlabeled]
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check labels
run: bash ${{ github.workspace }}/scripts/github/check_labels.sh
env:
GITHUB_PR: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}