Skip to content

Commit

Permalink
Updated workflow for different branches, also for depencie of PR merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
larslemos committed Aug 23, 2023
1 parent 24ecdfd commit f671bff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:

jobs:
dev_server_status:
if: github.ref == 'refs/heads/dev-deploy'
runs-on: ubuntu-latest

steps:
Expand All @@ -37,7 +38,7 @@ jobs:
dev_server_connection_dev:
runs-on: ubuntu-latest

needs: dev_server_status
steps:
- name: SSH to remote OHRI Dev server
run: |
Expand All @@ -48,7 +49,10 @@ jobs:
dev_deploy:
runs-on: ubuntu-latest
needs: dev_server_status

if: (github.event_name == 'push' || github.event.pull_request.merged)

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -73,6 +77,7 @@ jobs:
working_server_status:
if: github.ref == 'refs/heads/dev-deploy'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -109,6 +114,9 @@ jobs:
working_deploy:
runs-on: ubuntu-latest
needs: dev_server_status

if: (github.event_name == 'push' || github.event.pull_request.merged)

steps:
- name: Checkout code
Expand Down

0 comments on commit f671bff

Please sign in to comment.