Skip to content

Commit dadecda

Browse files
authored
Improved and refactored sponsor labeler workflow (#4123)
1 parent 737a987 commit dadecda

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Label Sponsor Contributions
1+
name: Sponsor Labeler
2+
23
on:
34
issues:
45
types:
@@ -9,15 +10,7 @@ on:
910

1011
jobs:
1112
label-sponsor:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
pull-requests: write
15-
issues: write
16-
17-
steps:
18-
- name: Check if sponsor
19-
uses: JasonEtco/is-sponsor-label-action@v1
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
with:
23-
label: sponsor
13+
uses: itzg/github-workflows/.github/workflows/sponsor-labeler.yml@main
14+
with:
15+
author: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}
16+
number: ${{ github.event.issue.number || github.event.pull_request.number }}

0 commit comments

Comments
 (0)