diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46376874d..fc257a1d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,7 +68,7 @@ jobs: with: name: ${{ matrix.OMR_TARGET }} path: /home/runner/work/omr/${{ matrix.OMR_TARGET }}/source/bin - - if: steps.branch_name.outputs.SOURCE_BRANCH == '' && secrets.PRIVATE_KEY != '' + - if: steps.branch_name.outputs.SOURCE_BRANCH == '' name: Deploy - Create directory uses: fifsky/ssh-action@master env: @@ -82,7 +82,7 @@ jobs: user: deploy port: ${{ secrets.OMR_DEPLOY_PORT }} key: ${{ secrets.PRIVATE_KEY }} - - if: steps.branch_name.outputs.SOURCE_BRANCH != '' && secrets.PRIVATE_KEY != '' + - if: steps.branch_name.outputs.SOURCE_BRANCH != '' name: Deploy - Create directory uses: fifsky/ssh-action@master env: @@ -96,7 +96,7 @@ jobs: user: deploy port: ${{ secrets.OMR_DEPLOY_PORT }} key: ${{ secrets.PRIVATE_KEY }} - - if: steps.branch_name.outputs.SOURCE_BRANCH == '' && secrets.PRIVATE_KEY != '' + - if: steps.branch_name.outputs.SOURCE_BRANCH == '' name: Deploy - Upload via rsync uses: up9cloud/action-rsync@master env: @@ -111,7 +111,7 @@ jobs: SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }} SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }} GITHUB_WORKSPACE: ${{ steps.branch_name.outputs.WORKSPACE }} - - if: steps.branch_name.outputs.SOURCE_BRANCH != '' && secrets.PRIVATE_KEY != '' + - if: steps.branch_name.outputs.SOURCE_BRANCH != '' name: Deploy - Upload via rsync uses: up9cloud/action-rsync@master env: