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: push:
branches: branches:
- testing - testing
pull_request:
jobs: jobs:
test: test:
runs-on: docker runs-on: docker
@ -23,6 +25,7 @@ jobs:
deploy: deploy:
needs: [test] needs: [test]
runs-on: docker runs-on: docker
if: github.ref == 'refs/heads/testing'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install ansible - name: Install ansible