Update build.yml

This commit is contained in:
ilangelov 2025-02-23 11:09:29 +02:00 committed by GitHub
parent 7ab9e6f0b2
commit 55278b7902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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