cicd: run on every pull request, but only deploy on testing
All checks were successful
/ test (pull_request) Successful in 52s
/ deploy (pull_request) Has been skipped

This commit is contained in:
lagertonne 2024-11-12 16:51:29 +01:00
parent 5ba4085e60
commit e34fb979ef

View file

@ -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