fix condition
This commit is contained in:
6
.github/workflows/deploy_compose.yml
vendored
6
.github/workflows/deploy_compose.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
token: ${{ secrets.REPOS_ACCESS_TOKEN }}
|
||||
|
||||
- name: Change Version if pr
|
||||
if: ${{ github.event.pull_request }}
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
echo "Change Version"
|
||||
echo ${{ github.repository }} |
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Deploy to Dev Host on pr
|
||||
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
||||
if: ${{ github.event.pull_request }}
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
with:
|
||||
remote_docker_host: ${{ secrets.DEV_DEPLOY_HOST }}
|
||||
remote_docker_user: ${{ secrets.DEV_DEPLOY_USER }}
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
|
||||
- name: Deploy to Deploy Host on other event
|
||||
uses: https://code.platosoft.org/infrastructure/docker-remote-deployment-action@local
|
||||
if: ! ${{ github.event.pull_request }}
|
||||
if: ! ${{ github.event_name == 'pull_request' }}
|
||||
with:
|
||||
remote_docker_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_docker_user: ${{ secrets.DEPLOY_USER }}
|
||||
|
||||
Reference in New Issue
Block a user