cicd: run on every pull request, but only deploy on testing
This commit is contained in:
parent
5ba4085e60
commit
e34fb979ef
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- testing
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
|
@ -23,6 +25,7 @@ jobs:
|
|||
deploy:
|
||||
needs: [test]
|
||||
runs-on: docker
|
||||
if: github.ref == 'refs/heads/testing'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install ansible
|
||||
|
|
Loading…
Reference in a new issue