Skip to content

Commit

Permalink
cut os- prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
fatz committed Nov 13, 2024
1 parent b4ea01b commit 159f006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ jobs:
if: contains(fromJson('["workflow_dispatch"]'), github.event_name) && contains(github.event.inputs.os, 'os-')
id: build-os-matrix-distro
run: |
DYNAMICOSLIST=$(make list-os-versions | grep -E "^${{ github.event.inputs.os }}" | head -c -1 | tr '\n' ',')
OSPREFIX=$(echo ${{ github.event.inputs.os }} | cut -d '-' -f 2)
DYNAMICOSLIST=$(make list-os-versions | grep -E "$OSPREFIX" | head -c -1 | tr '\n' ',')
echo "buildmatrix=$(jq -cn --arg os_list $DYNAMICOSLIST '{os: $os_list | split(",")}')" >> $GITHUB_ENV
- name: Build OS matrix for single OS
if: contains(fromJson('["workflow_dispatch"]'), github.event_name) && github.event.inputs.os != 'all' && !contains(github.event.inputs.os, 'os-')
Expand Down

0 comments on commit 159f006

Please sign in to comment.