Skip to content

Commit

Permalink
some more updated on PRT label checks (#1261) (#1270)
Browse files Browse the repository at this point in the history
(cherry picked from commit 375868f)

Co-authored-by: Omkar Khatavkar <[email protected]>
  • Loading branch information
Satellite-QE and omkarkhatavkar authored Mar 5, 2024
1 parent 5d39597 commit 5453b92
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/prt_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ 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: Avoid the race condition as PRT result will be cleaned
run: |
echo "Avoiding the race condition if prt result will be cleaned" && sleep 60
- name: Fetch the PRT status
id: prt
uses: omkarkhatavkar/wait-for-status-checks@main
Expand Down Expand Up @@ -41,4 +46,4 @@ jobs:
name: label
});
}));
}
}

0 comments on commit 5453b92

Please sign in to comment.