Skip to content

Commit

Permalink
Fix inverted logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroCC committed Oct 23, 2024
1 parent feb735c commit 5a54dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a54dee

Please sign in to comment.