Skip to content

Commit

Permalink
Fixing set_labels (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 authored Dec 29, 2023
1 parent c527ecb commit 6b3d6b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'doc') ||
startsWith(github.event.pull_request.head.ref, 'docs')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: Documentation

- uses: actions-ecosystem/action-add-labels@v1
Expand All @@ -53,16 +54,19 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'no-ci') ||
startsWith(github.event.pull_request.head.ref, 'ci')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: CI/CD

- uses: actions-ecosystem/action-add-labels@v1
if: startsWith(github.event.pull_request.head.ref, 'maint')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: Maintenance

- uses: actions-ecosystem/action-add-labels@v1
if: startsWith(github.event.pull_request.head.ref, 'feat')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: |
Enhancement
NEW FEATURE
Expand All @@ -72,6 +76,7 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'fix') ||
startsWith(github.event.pull_request.head.ref, 'patch')
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
labels: BUG

commenter:
Expand All @@ -83,7 +88,6 @@ jobs:
- name: Suggest to add labels
uses: peter-evans/create-or-update-comment@v3
# Execute only when no labels have been applied to the pull request
# if: toJSON(github.event.pull_request.labels.*.name) == '[]'
if: toJSON(github.event.pull_request.labels.*.name) == '{}' # Empty labels
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6b3d6b1

Please sign in to comment.