diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 415b92738e..a9f2c8f259 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -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 @@ -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 @@ -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: @@ -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 }}