Skip to content

Commit

Permalink
fixup! build: allow building of arm images when a specific label is a…
Browse files Browse the repository at this point in the history
…dded
  • Loading branch information
Taepper committed Jan 15, 2025
1 parent fc207f6 commit 1907cc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ jobs:
echo "PLATFORM_BUILD=true" >> $GITHUB_ENV
fi
# Write the current labels to a file
cat <<EOF > event.json
${{ toJSON(github.event.pull_request.labels) }}
EOF
# Check if the PR has the label 'arm-image'
if [[ "${{ github.event.pull_request.labels.*.name }}" == *'arm-image'* ]]; then
if jq -e '[]?.name | select(. == "arm-image")' event.json > /dev/null; then
echo "PLATFORM_BUILD=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 1907cc9

Please sign in to comment.