github: add sponsor label workflow

This commit is contained in:
Hans Pagel 2021-05-04 22:40:04 +02:00
parent b131330ca1
commit f461a64717

23
.github/workflows/add-labels.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# A GitHub Action that labels issues/PRs if the creator is a sponsor of the owner
# Documentation: https://github.com/JasonEtco/is-sponsor-label-action
name: add labels
on:
pull_request:
types: [opened]
issues:
types: [opened]
jobs:
build:
name: is-sponsor-label
runs-on: ubuntu-latest
steps:
- uses: JasonEtco/is-sponsor-label-action@v1
with:
label: sponsor 💖
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}