From a6ce80666ed58c03ffb9e0947215f0aa80056783 Mon Sep 17 00:00:00 2001 From: Jan Stiborek Date: Wed, 25 Sep 2024 10:51:47 +0200 Subject: [PATCH] Changed configuration of the ci pipeline when it should trigger --- .github/workflows/build.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 617ea25..7a94efc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,10 +1,12 @@ name: Build on: - push: - workflow_dispatch: - pull_request_target: - types: [assigned, opened, synchronize, reopened] + push: + branches: + - master + pull_request: + branches: + - master env: WORKING_DIRECTORY: 'dlib' @@ -20,6 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} submodules: true - uses: actions/setup-python@v5 @@ -60,6 +63,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} submodules: true - name: Checkout build commit