Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some more updated on PRT label checks #1261

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
});
}));
}
}
Loading