tommie 2023-05-12 16:08:56 +02:00 committed by GitHub
parent 07a2e4f8e3
commit 0762632d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -66,10 +66,10 @@ jobs:
upstream="${{ steps.check-latest-release.outputs.innernet_release }}-0ubuntu0~$codename" upstream="${{ steps.check-latest-release.outputs.innernet_release }}-0ubuntu0~$codename"
echo "Repo release in $codename: $indexed" echo "Repo release in $codename: $indexed"
if [ "x$indexed" != "x$upstream" ]; then if [ "x$indexed" != "x$upstream" ]; then
new_release_exists="${new_release_exists:+$new_release_exists }$ver" new_release_exists="${new_release_exists:+$new_release_exists,}\"$ver\""
fi fi
done done
echo "new_release_exists=$new_release_exists" >>"$GITHUB_OUTPUT" echo "new_release_exists=[$new_release_exists]" >>"$GITHUB_OUTPUT"
- name: Show Output - name: Show Output
id: show-output id: show-output
@ -82,14 +82,11 @@ jobs:
build-deb: build-deb:
name: Build DEB Packages name: Build DEB Packages
needs: [check-upstream] needs: [check-upstream]
if: contains(needs.check-upstream.outputs.new_release_exists, matrix.os)
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: os: ${{ fromJson(needs.check-upstream.outputs.new_release_exists) }}
- ubuntu-22.04
- ubuntu-20.04
steps: steps:
- name: Install Distro Dependencies - name: Install Distro Dependencies
@ -138,16 +135,13 @@ jobs:
release: release:
needs: [check-upstream, build-deb] needs: [check-upstream, build-deb]
if: contains(needs.check-upstream.outputs.new_release_exists, matrix.os)
# Avoid push conflicts. # Avoid push conflicts.
concurrency: update_repository concurrency: update_repository
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: os: ${{ fromJson(needs.check-upstream.outputs.new_release_exists) }}
- ubuntu-22.04
- ubuntu-20.04
steps: steps:
- name: Install Distro Dependencies - name: Install Distro Dependencies