mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Update deploy action to not trigger on pull requests
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
name: Deploy app to demo server (demo.archtika.com)
|
||||
name: Deploy app to server
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ 'Playwright tests' ]
|
||||
types: [ completed ]
|
||||
branches: [ devel, main ]
|
||||
env:
|
||||
SERVER_USER: root
|
||||
SERVER_IP: 128.140.75.240
|
||||
@@ -11,7 +12,9 @@ env:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
if: |
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.event == 'push'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Playwright tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ devel, main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [ devel, main ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
Reference in New Issue
Block a user