Skip to content

Commit

Permalink
INITIAL WORKFLOW DISPATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhutter committed Dec 26, 2024
1 parent 219a89c commit 41321ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/zfs-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ name: zfs-qemu
on:
push:
pull_request:
workflow_dispatch:
inputs:
include_stream9:
type: boolean
required: false
default: false
description: 'Test on CentOS 9 stream'
include_stream10:
type: boolean
required: false
default: false
description: 'Test on CentOS 10 stream'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -37,6 +49,15 @@ jobs:
os_selection="$FULL_OS"
fi
os_json=$(echo ${os_selection} | jq -c)
# Add on optional runners
if [ ${{ github.event.inputs.include_stream9 }} == "true" ] ; then
os_json="$(echo $os_json | jq -c '. += ["centos-stream9"]')"
fi
if [ ${{ github.event.inputs.include_stream10 }} == "true" ] ; then
os_json="$(echo $os_json | jq -c '. += ["centos-stream10"]')"
fi
echo "os=$os_json" >> $GITHUB_OUTPUT
echo "ci_type=$ci_type" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 41321ea

Please sign in to comment.