From c94743ceb68833ea6f748a3b341dfcff4b2eaca2 Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Thu, 22 Feb 2024 16:26:05 +0530 Subject: [PATCH] some more updated on PRT label checks --- .github/workflows/prt_labels.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prt_labels.yml b/.github/workflows/prt_labels.yml index 0472bfe3b..3ef16ab4b 100644 --- a/.github/workflows/prt_labels.yml +++ b/.github/workflows/prt_labels.yml @@ -2,12 +2,13 @@ name: Remove the PRT label, for the new commit on: pull_request: - types: ["opened", "synchronize"] + types: ["synchronize"] jobs: - prt_labels: - name: remove the PRT label, if it is a new commit + prt_labels_remover: + name: remove the PRT label when amendments or new commits added to PR runs-on: ubuntu-latest + if: "(contains(github.event.pull_request.labels.*.name, 'PRT-Passed') || contains(github.event.pull_request.labels.*.name, 'PRT-Failed'))" steps: - name: Fetch the PRT status id: prt @@ -41,4 +42,4 @@ jobs: name: label }); })); - } \ No newline at end of file + }