Python: Change logic to use `startsWith` (#8556)
We've moved from 20.04 to 22.04 but forgot to update
the if-conditions below. This should fix it
diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml
index afa3d18..a59af0c 100644
--- a/.github/workflows/python-release.yml
+++ b/.github/workflows/python-release.yml
@@ -57,7 +57,7 @@
# the repository, otherwise the tests will fail
- name: Compile source distribution
run: python3 -m poetry build --format=sdist
- if: "${{ matrix.os == 'ubuntu-20.04' }}"
+ if: startsWith(matrix.os, 'ubuntu')
working-directory: ./python
- name: Build wheels
@@ -80,7 +80,7 @@
CIBW_TEST_SKIP: "pp* *macosx*"
- name: Add source distribution
- if: "${{ matrix.os == 'ubuntu-20.04' }}"
+ if: startsWith(matrix.os, 'ubuntu')
run: ls -lah python/dist/* && cp python/dist/* wheelhouse/
- uses: actions/upload-artifact@v3