From 749018daca7f096f9b7eec1a169a874ca2a113f3 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 20 Feb 2024 12:03:02 +0100 Subject: [PATCH] ci: use string conditions --- .github/workflows/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 12b980856d..63a0c4a9b2 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -27,7 +27,7 @@ jobs: username: ${{ github.actor }} token: ${{ secrets.APM_TECH_USER_TOKEN }} - name: Add community and triage lables - if: steps.is_elastic_member.outputs.result != true + if: contains(steps.is_elastic_member.outputs.result, 'false') uses: actions/github-script@v7 with: script: | @@ -38,7 +38,7 @@ jobs: labels: ["community", "triage"] }) - name: Add comment for community PR - if: steps.is_elastic_member.outputs.result != true + if: contains(steps.is_elastic_member.outputs.result, 'false') uses: wow-actions/auto-comment@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -50,7 +50,7 @@ jobs: Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming [milestone](https://github.com/elastic/apm-agent-java/milestones). The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it. - name: Assign new internal pull requests to project uses: elastic/assign-one-project-github-action@1.2.2 - if: (steps.is_elastic_member.outputs.result == true) && github.event.pull_request + if: contains(steps.is_elastic_member.outputs.result, 'true') && github.event.pull_request with: project: 'https://github.com/orgs/elastic/projects/454' project_id: '5882982'