diff --git a/.github/workflows/add-label-on-failure-report.yml b/.github/workflows/add-label-on-failure-report.yml index 512491f..49ecb6f 100644 --- a/.github/workflows/add-label-on-failure-report.yml +++ b/.github/workflows/add-label-on-failure-report.yml @@ -7,11 +7,15 @@ on: jobs: add_label: runs-on: ubuntu-latest - if: ${{ contains(github.event.issue.title, 'Test failure') && !contains(github.event.issue.labels.*.name, 'needs triage') && !contains(github.event.issue.labels.*.name, 'release testing') }} + if: ${{ contains(github.event.issue.title, 'Test failure') }} steps: - - name: Apply release testing labels + - if: ${{ !contains(github.event.issue.labels.*.name, 'needs triage') }} + name: Apply label needs triage uses: actions-ecosystem/action-add-labels@v1 with: - labels: | - needs triage - release testing + labels: needs triage + - if: ${{ !contains(github.event.issue.labels.*.name, 'release testing') }} + name: Apply label release testing + uses: actions-ecosystem/action-add-labels@v1 + with: + labels: release testing