mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-03-09 09:31:32 +01:00
wip debug the url
This commit is contained in:
parent
56b01e28a1
commit
cea95d4dc0
2
.github/workflows/db-change.yml
vendored
2
.github/workflows/db-change.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
URL=/repos/meilisearch/meilisearch/pulls/${{ github.event.pull_request.number }}/labels
|
URL=/repos/meilisearch/meilisearch/pulls/${{ github.event.pull_request.number }}/labels
|
||||||
echo ${{ github.event.pull_request.number }}
|
echo ${{ github.event.pull_request.number }}
|
||||||
echo $URL
|
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+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/meilisearch/meilisearch/issues/${{ 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."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user