Skip to content

Commit

Permalink
Fixing activation of labeler (#1913)
Browse files Browse the repository at this point in the history
Fixing labeler.. hopefully
  • Loading branch information
germa89 authored Mar 14, 2023
1 parent a868f71 commit b5b02f4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:
jobs:

label-syncer:
# Sync the labels name, colours with the file ``labels.yml``
name: Syncer
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -73,16 +74,6 @@ jobs:
with:
labels: BUG

label-syncer-two:
name: Re-sync labels
needs: [labeler]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

commenter:
runs-on: ubuntu-latest
needs: [label-syncer-two]
Expand All @@ -93,7 +84,7 @@ jobs:
uses: peter-evans/create-or-update-comment@v2
# Execute only when no labels have been applied to the pull request
# if: toJSON(github.event.pull_request.labels.*.name) == '[]'
if: github.event.pull_request.labels[0] == null # Empty labels
if: toJSON(github.event.pull_request.labels.*.name) == '{}' # Empty labels
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit b5b02f4

Please sign in to comment.