From 5a54deec1f0e6d4ab3d8b60109ce744b01278b8d Mon Sep 17 00:00:00 2001 From: Conlan Cesar Date: Wed, 23 Oct 2024 09:00:27 -0400 Subject: [PATCH] Fix inverted logic --- .github/workflows/docker-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 9e38155a4..a497718c6 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -170,7 +170,7 @@ jobs: REGISTRY_USERNAME=${{ secrets[format('REGISTRY_USERNAME_{0}', steps.prepare.outputs.REGISTRY)] }} REGISTRY_PASSWORD=${{ secrets[format('REGISTRY_PASSWORD_{0}', steps.prepare.outputs.REGISTRY)] }} - if [[ -n "${REGISTRY_USERNAME}" && -n "${REGISTRY_PASSWORD}" ]]; then + if [[ -z "${REGISTRY_USERNAME}" && -z "${REGISTRY_PASSWORD}" ]]; then # If we don't have the relevant credentials, we can't push. Warn the user, but don't fail. echo "::warning::Pushing to ${{ matrix.registry }} is disabled; we can't find credentials" echo "REGISTRY_READY=false" | tee -a $GITHUB_OUTPUT