Skip to content

Commit e6516eb

Browse files
committed
wip
1 parent 7c9c8dc commit e6516eb

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/validate.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,23 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- run: |
19-
echo "Multiple validation labels detected. Exiting."
20-
exit 1
19+
echo "Multiple validation labels detected. Removing extra labels..."
20+
gh pr edit ${{ github.event.pull_request.number }} --repo $GITHUB_REPOSITORY --remove-label "run-full-validation-long" --remove-label "run-full-validation" --repo $GITHUB_REPOSITORY --remove-label "validation"
21+
22+
# Remove appropriate labels based on which ones are present
23+
# if [[ "${{ contains(github.event.pull_request.labels.*.name, 'run-full-validation-long') }}" == "true" ]]; then
24+
# gh pr edit ${{ github.event.pull_request.number }} --repo $GITHUB_REPOSITORY --remove-label "run-full-validation-long"
25+
# fi
26+
27+
# if [[ "${{ contains(github.event.pull_request.labels.*.name, 'run-full-validation') }}" == "true" ]]; then
28+
# gh pr edit ${{ github.event.pull_request.number }} --repo $GITHUB_REPOSITORY --remove-label "run-full-validation"
29+
# fi
30+
31+
# if [[ "${{ contains(github.event.pull_request.labels.*.name, 'run-quick-validation') }}" == "true" ]]; then
32+
# gh pr edit ${{ github.event.pull_request.number }} --repo $GITHUB_REPOSITORY --remove-label "validation"
33+
# fi
34+
35+
echo "Completed label cleanup"
2136
2237
validate:
2338
name: 'Validate Changed Packages - Github Hosted'

0 commit comments

Comments
 (0)