Revert test-build-deploy.yml to only run tests on PRs or direct commits.

This commit is contained in:
zkldi
2021-11-23 02:01:36 +00:00
parent c0f7b5a9b5
commit 29cbe7fe02
+3 -2
View File
@@ -2,6 +2,7 @@ name: Test, Build, Deploy
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
workflow_dispatch:
@@ -55,7 +56,7 @@ jobs:
docker-push:
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'ref/heads/master')
if: github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -94,7 +95,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: [docker-push]
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'ref/heads/master')
if: github.event_name == 'push'
steps:
- name: Deploy to staging
if: github.ref == 'refs/heads/develop'