diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index fdba9fed11a83..ddbc194cd5b16 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -67,8 +67,7 @@ jobs: if [ -z "${{ secrets.APPLE_USERNAME }}" ]; then echo "::warning::APPLE_USERNAME is empty; notarization disabled" DO_NOTARIZE='false' - fi - if [ -z "${{ secrets.APPLE_PASSWORD }}" ]; then + elif [ -z "${{ secrets.APPLE_PASSWORD }}" ]; then echo "::warning::APPLE_PASSWORD is empty, notarization disabled" DO_NOTARIZE='false' fi