This commit is contained in:
Thomas Göttgens 2024-09-29 14:00:36 +02:00 committed by GitHub
parent 42a3301188
commit 88af23319c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,12 +35,12 @@ jobs:
name: Checkout base
- id: jsonStep
run: |
if [[ "${{ github.ref_name }}" == "master" ]]; then
if [[ "${{ github.head_ref }}" == "refs/heads/master" ]]; then
TARGETS=$(./bin/generate_ci_matrix.py ${{matrix.arch}})
else
TARGETS=$(./bin/generate_ci_matrix.py ${{matrix.arch}} quick)
fi
echo "Name: ${{ github.ref_name }} Base: ${{ github.base_ref }} Head: ${{ github.head_ref }} Ref: ${{ github.ref }} $TARGETS"
echo "Name: ${{ github.ref_name }} Base: ${{ github.base_ref }} Head: ${{ github.head_ref }} Ref: ${{ github.ref }} Targets: $TARGETS"
echo "${{matrix.arch}}=$(jq -cn --argjson environments "$TARGETS" '{board: $environments}')" >> $GITHUB_OUTPUT
outputs:
esp32: ${{ steps.jsonStep.outputs.esp32 }}