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