fix condition

This commit is contained in:
smf
2024-03-10 20:01:20 +08:00
parent 8793fbf73c
commit a79f78a029

View File

@@ -36,7 +36,7 @@ jobs:
token: ${{ secrets.REPOS_ACCESS_TOKEN }} token: ${{ secrets.REPOS_ACCESS_TOKEN }}
- name: Change Version if pr - name: Change Version if pr
if: ${{ github.event.pull_request }} if: ${{ github.event_name == 'pull_request' }}
run: | run: |
echo "Change Version" echo "Change Version"
echo ${{ github.repository }} | echo ${{ github.repository }} |
@@ -45,7 +45,7 @@ jobs:
- name: Deploy to Dev Host on pr - name: Deploy to Dev Host on pr
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
if: ${{ github.event.pull_request }} if: ${{ github.event_name == 'pull_request' }}
with: with:
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }} remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }} remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
@@ -61,7 +61,7 @@ jobs:
- name: Deploy to Deploy Host on other event - name: Deploy to Deploy Host on other event
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
if: ! ${{ github.event.pull_request }} if: ! ${{ github.event_name == 'pull_request' }}
with: with:
remote_docker_host: ${{ secrets.DEPLOY_HOST }} remote_docker_host: ${{ secrets.DEPLOY_HOST }}
remote_docker_user: ${{ secrets.DEPLOY_USER }} remote_docker_user: ${{ secrets.DEPLOY_USER }}