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::'