mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +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:
|
outputs:
|
||||||
ci_build: ${{ steps.label-check.outputs.ci_build }}
|
ci_build: ${{ steps.label-check.outputs.ci_build }}
|
||||||
steps:
|
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
|
- name: Fetch PR Labels
|
||||||
id: label-check
|
id: label-check
|
||||||
run: |
|
run: |
|
||||||
echo "Fetching labels for PR #${{ github.event.pull_request.number }}..."
|
|
||||||
|
|
||||||
LABELS=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
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')
|
"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 "ci_build=false" >> $GITHUB_ENV
|
||||||
echo "::set-output name=ci_build::false"
|
echo "::set-output name=ci_build::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-docker:
|
build-docker:
|
||||||
name: Build & Push Docker Image
|
name: Build & Push Docker Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue