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
45bb7fa699
commit
7ab9e6f0b2
1 changed files with 8 additions and 4 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -52,20 +52,24 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
outputs:
|
outputs:
|
||||||
ci_build: ${{ steps.check.outputs.ci_build }}
|
ci_build: ${{ steps.label-check.outputs.ci_build }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get PR Labels
|
- name: Fetch PR Labels
|
||||||
id: 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')
|
||||||
|
|
||||||
echo "Labels found: $LABELS"
|
echo "Found labels: $LABELS"
|
||||||
|
|
||||||
if echo "$LABELS" | grep -q "CI:Build"; then
|
if echo "$LABELS" | grep -q "CI:Build"; then
|
||||||
echo "ci_build=true" >> $GITHUB_ENV
|
echo "ci_build=true" >> $GITHUB_ENV
|
||||||
|
echo "::set-output name=ci_build::true"
|
||||||
else
|
else
|
||||||
echo "ci_build=false" >> $GITHUB_ENV
|
echo "ci_build=false" >> $GITHUB_ENV
|
||||||
|
echo "::set-output name=ci_build::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-docker:
|
build-docker:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue