fix condition

This commit is contained in:
smf
2024-03-10 20:16:44 +08:00
parent 57d7c50a88
commit 67bf8517d8

View File

@@ -38,7 +38,7 @@ jobs:
- name: check info
run: |
echo "{{ github.event_name }}: ${{ github.event_name }}"
echo "! {{ github.event_name == 'pull_request'}}: ${{ ! github.event_name == 'pull_request' }}"
echo "{{ ! ( github.event_name == 'pull_request' ) }}: ${{ ! ( github.event_name == 'pull_request' ) }}"
- name: Change Version if pr
if: ${{ github.event_name == 'pull_request' }}
@@ -66,7 +66,7 @@ jobs:
- name: Deploy to Deploy Host on other event
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
if: ${{ ! github.event_name == 'pull_request' }}
if: ${{ ! ( github.event_name == 'pull_request' ) }}
with:
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
remote_docker_user: ${{ secrets.DEPLOY_USER }}