WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1ea0e4e

Browse files
committed
optimize workflows
1 parent aa39539 commit 1ea0e4e

File tree

2 files changed

+12
-53
lines changed

2 files changed

+12
-53
lines changed

.github/labeler.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/auto-labeler.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
1-
name: Auto labeler
1+
name: auto-labeler
22

33
on:
4-
issues:
5-
types: [opened, edited, milestoned]
6-
pull_request_target:
7-
types: [opened, edited, reopened, synchronize]
8-
workflow_dispatch:
9-
permissions:
10-
# Setting up permissions in the workflow to limit the scope of what it can do. Optional!
11-
contents: read # the config file
12-
issues: write # for labeling issues (on: issues)
13-
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
14-
statuses: write # to generate status
15-
checks: write # to generate status
4+
issues:
5+
types: [opened, edited, milestoned]
6+
pull_request_target:
7+
types: [opened, edited, reopened, synchronize]
8+
workflow_dispatch:
169

1710
jobs:
18-
labeler:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Check Labels
22-
id: labeler
23-
uses: fuxingloh/multi-labeler@b15a54460c38f54043fa75f7b08a0e2aa5b94b5b #v4.0.0
11+
auto-labeler:
12+
uses: gofiber/.github/.github/workflows/auto-labeler.yml@main
13+
secrets:
14+
github-token: ${{ secrets.ISSUE_PR_TOKEN }}
2415
with:
25-
# Use a PAT so that applying labels can trigger downstream workflows
26-
# (GITHUB_TOKEN updates do not emit additional workflow events).
27-
github-token: ${{ secrets.ISSUE_PR_TOKEN }}
28-
16+
config-path: .github/labeler.yml
17+
config-repository: gofiber/.github

0 commit comments

Comments
 (0)