From e34fb979efad774c2f88176c2303af12dd5634cb Mon Sep 17 00:00:00 2001 From: lagertonne Date: Tue, 12 Nov 2024 16:51:29 +0100 Subject: [PATCH] cicd: run on every pull request, but only deploy on testing --- .forgejo/workflows/testing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.forgejo/workflows/testing.yml b/.forgejo/workflows/testing.yml index dd16880..c35d8bd 100644 --- a/.forgejo/workflows/testing.yml +++ b/.forgejo/workflows/testing.yml @@ -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