mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Update build.yml
This commit is contained in:
parent
7ab9e6f0b2
commit
55278b7902
1 changed files with 6 additions and 3 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue