Skip to content

Commit d705754

Browse files
Merge pull request #75 from rancher/replace_labeler
Replace 3rd party action with native CLI
2 parents 5a74d28 + 479ea43 commit d705754

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
name: Label issues
1+
name: Label issue
72
on:
83
issues:
94
types:
105
- opened
116
- reopened
7+
8+
permissions:
9+
issues: write
10+
1211
jobs:
1312
label_issues:
1413
runs-on: ubuntu-latest
15-
permissions:
16-
issues: write
1714
steps:
18-
- name: Label issues
19-
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
20-
with:
21-
add-labels: "team/area3"
22-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
- name: Label issue
16+
id: run
17+
run: gh issue edit -R ${GITHUB_REPOSITORY} --add-label ${LABEL} ${{ github.event.issue.number }}
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
LABEL: "team/area3"

0 commit comments

Comments
 (0)