Skip to content

Commit

Permalink
Test action OCI
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Dec 8, 2024
1 parent 33ab4bc commit 11775fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-oci-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ jobs:
id: set-matrix
run: |
deb_matrix=$(echo '[
{"execute": '${{ github.event.inputs.ubuntu2204 || false }}', "name": "Ubuntu22.04", "os": "ubuntu2204", "distr": "generic"},
{"execute": '${{ github.event.inputs.ubuntu2204 || false }}', "name": "Ubuntu22.04", "os": "ubuntu2204", "distr": "generic"}
]' | jq -c '.[] | select(.execute == true)')
rpm_matrix=$(echo '[
{"execute": '${{ github.event.inputs.centos9s || false }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"},
{"execute": '${{ github.event.inputs.centos9s || false }}', "name": "CentOS9S", "os": "centos9s", "distr": "generic"}
]' | jq -c '.[] | select(.execute == true)')
if [ "${{ github.event.inputs.deb_built }}" == "true" ] && [ "${{ github.event.inputs.rpm_built }}" == "true" ]; then
combined_matrix=$(echo "[${deb_matrix}, ${rpm_matrix}]" | jq -c '. | add')
if [[ "${{ github.event.inputs.deb_built }}" == "true" ]] && [[ "${{ github.event.inputs.rpm_built }}" == "true" ]]; then
combined_matrix=$(echo "[${deb_matrix}, ${rpm_matrix}]" | jq -s 'add')
matrix=$combined_matrix
elif [ "${{ github.event.inputs.deb_built }}" == "true" ]; then
elif [[ "${{ github.event.inputs.deb_built }}" == "true" ]]; then
matrix=$deb_matrix
elif [ "${{ github.event.inputs.rpm_built }}" == "true" ]; then
elif [[ "${{ github.event.inputs.rpm_built }}" == "true" ]]; then
matrix=$rpm_matrix
else
echo "No packages were marked as built."
Expand Down

0 comments on commit 11775fc

Please sign in to comment.