Add labels workflow

This commit is contained in:
CrazyMax 2021-05-30 07:54:08 +02:00
parent aecf5e3748
commit 4cbde6ce16
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 123 additions and 0 deletions

18
.github/workflows/label-sponsor.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: label-sponsor
on:
issues:
types:
- 'opened'
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Set sponsor label
uses: JasonEtco/is-sponsor-label-action@024ac24f8b170abce078cad4ee748852369853c8
with:
label: ":sparkling_heart: sponsor"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

@ -0,0 +1,20 @@
name: labels
on:
push:
branches:
- 'master'
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'
jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v3