Skip to content

Commit

Permalink
Update add_label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Jun 28, 2024
1 parent e7ef1ee commit 94277ea
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/add_label.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: "Add labels"

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
pull_request:

permissions:
pull-requests: read
Expand All @@ -15,13 +10,12 @@ jobs:
apply-label:
runs-on: ubuntu-latest
steps:
- run: echo ${{ steps.pr-files.outputs.changedFiles }}
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Triage']
labels: ${{ steps.pr-files.outputs.changedFiles }}
})

0 comments on commit 94277ea

Please sign in to comment.