More attempts at conditional syntax...

The GitHub reference is not great...
main
tommie 2023-05-12 15:58:59 +02:00 committed by GitHub
parent c19529c5a8
commit 07a2e4f8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ jobs:
id: check-repo-release
run: |
new_release_exists=
for ver_codename in 22.04/jammy 20.04/focal; do
for ver_codename in ubuntu-22.04/jammy ubuntu-20.04/focal; do
ver=${ver_codename%/*}
codename=${ver_codename##*/}
# Note the leading v to match the Git tag.
@ -82,7 +82,7 @@ jobs:
build-deb:
name: Build DEB Packages
needs: [check-upstream]
if: contains('${{ needs.check-upstream.outputs.new_release_exists }}', 'ubuntu-${{ matrix.os }}')
if: contains(needs.check-upstream.outputs.new_release_exists, matrix.os)
runs-on: ${{ matrix.os }}
strategy:
@ -138,7 +138,7 @@ jobs:
release:
needs: [check-upstream, build-deb]
if: contains('${{ needs.check-upstream.outputs.new_release_exists }}', 'ubuntu-${{ matrix.os }}')
if: contains(needs.check-upstream.outputs.new_release_exists, matrix.os)
# Avoid push conflicts.
concurrency: update_repository
runs-on: ${{ matrix.os }}