Skip to content

Commit

Permalink
Remove null
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Oct 5, 2024
1 parent d39deec commit a6aa05d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/service_docker-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Debug ansible-versions.yml content
run: |
echo "Content of ansible-versions.yml:"
cat ansible-versions.yml

- name: Assemble Ansible versions into the matrix 😎
id: get-ansible-versions
run: |
MATRIX_JSON=$(yq -o=json ansible-versions.yml | jq -c '{include: [.ansible_variations[] | .versions[] as $version | .python_versions[] as $python | .base_os[] as $os | {ansible_variation: .name, ansible_version: $version.version, python_version: $python, base_os: $os.name, latest_stable: ($version.latest_stable // false)}]}')
MATRIX_JSON=$(yq -o=json ansible-versions.yml | jq -c '{include: [.ansible_variations[] | select(.versions != null) | .versions[] as $version | (.python_versions // [])[] as $python | (.base_os // [])[] as $os | {ansible_variation: .name, ansible_version: $version.version, python_version: $python, base_os: $os.name, latest_stable: ($version.latest_stable // false)}]}')
echo "ansible-version-map-json=${MATRIX_JSON}" >> $GITHUB_OUTPUT
echo "${MATRIX_JSON}" | jq '.'
Expand Down

0 comments on commit a6aa05d

Please sign in to comment.