wip debug the url

This commit is contained in:
Tamo 2025-03-06 18:22:30 +01:00
parent fa6459335c
commit 56b01e28a1

View File

@ -16,6 +16,9 @@ jobs:
- name: Check db change labels - name: Check db change labels
id: check_labels id: check_labels
run: | run: |
URL=/repos/meilisearch/meilisearch/pulls/${{ github.event.pull_request.number }}/labels
echo ${{ github.event.pull_request.number }}
echo $URL
LABELS=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/meilisearch/meilisearch/pulls/${{ github.event.pull_request.number }}/labels -q .[].name) LABELS=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/meilisearch/meilisearch/pulls/${{ github.event.pull_request.number }}/labels -q .[].name)
if [[ ! "$LABELS" =~ "db change" && ! "$LABELS" =~ "no db change" ]]; then if [[ ! "$LABELS" =~ "db change" && ! "$LABELS" =~ "no db change" ]]; then
echo "::error::Pull request must contain either the 'db change' or 'no db change' label." echo "::error::Pull request must contain either the 'db change' or 'no db change' label."