From 7c6c3f464c984355fcbe5facb02ff2913e950f40 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 8 Oct 2025 02:08:06 +0300 Subject: [PATCH] Deb PPA: avoid some pitfails in publish job --- .github/workflows/deb-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deb-publish.yml b/.github/workflows/deb-publish.yml index 1c8e7c05..efb7471d 100644 --- a/.github/workflows/deb-publish.yml +++ b/.github/workflows/deb-publish.yml @@ -257,7 +257,7 @@ jobs: root_dir: $APTLY_ROOT gpg_disable_verify: false EOT - if [ "${{ steps.gpg.conclusion }}" == "skipped" ]; then + if [ "${{ steps.gpg.conclusion }}" = "skipped" ]; then tee -a ~/.aptly.conf </dev/null || \ + (aptly repo show $REPO_NAME > /dev/null 2>&1) || \ aptly repo create -distribution=$REPO_SUITE -component=main $REPO_NAME aptly repo include -repo=$REPO_NAME \ "${{ github.workspace }}/incoming/src-artifacts" \ "${{ github.workspace }}/incoming/bin-artifacts/$DIST" \ ; aptly snapshot create $SNAPSHOT_NAME from repo $REPO_NAME - aptly publish show $REPO_SUITE $DIST &>/dev/null || \ + (aptly publish show $REPO_SUITE $DIST > /dev/null 2>&1) || \ aptly publish snapshot -acquire-by-hash -origin="apt.bcachefs.org" -label="apt.bcachefs.org Packages" $SNAPSHOT_NAME $DIST aptly publish switch $REPO_SUITE $DIST $SNAPSHOT_NAME echo '::endgroup::'