Skip to content

Commit

Permalink
some more updated on PRT label checks
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Feb 22, 2024
1 parent 597175e commit c94743c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/prt_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -41,4 +42,4 @@ jobs:
name: label
});
}));
}
}

0 comments on commit c94743c

Please sign in to comment.