From 07a2e4f8e3e7558db4085b653d62e8620717eb76 Mon Sep 17 00:00:00 2001 From: tommie Date: Fri, 12 May 2023 15:58:59 +0200 Subject: [PATCH] More attempts at conditional syntax... The GitHub reference is not great... --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d8bc39..f2a85a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}