From 55278b79024addc8c12c04768e30f8ec5f51309d Mon Sep 17 00:00:00 2001 From: ilangelov Date: Sun, 23 Feb 2025 11:09:29 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e3e5cb08f..8d2e4d8393 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,11 +54,15 @@ jobs: outputs: ci_build: ${{ steps.label-check.outputs.ci_build }} steps: + - name: Debug PR Number & API Response + run: | + echo "Checking labels for PR #${{ github.event.pull_request.number }}" + curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" + - name: Fetch PR Labels id: label-check run: | - echo "Fetching labels for PR #${{ github.event.pull_request.number }}..." - LABELS=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" | jq -r '.[].name') @@ -71,7 +75,6 @@ jobs: echo "ci_build=false" >> $GITHUB_ENV echo "::set-output name=ci_build::false" fi - build-docker: name: Build & Push Docker Image runs-on: ubuntu-latest