From b387cbacecbe22529152b6ce8f22969fbbcb4635 Mon Sep 17 00:00:00 2001 From: JezerM Date: Tue, 8 Mar 2022 17:25:28 -0600 Subject: [PATCH] Run build workflow only when src/** changes --- .github/workflows/build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index adb73fd..8ce5024 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,19 @@ name: Build Test -on: [push, pull_request] +on: + push: + paths: + - "src/**" + - ".github/workflows/build.yml" + - ".github/actions/build/action.yml" + pull_request: + workflow_dispatch: jobs: build-ubuntu: runs-on: ubuntu-latest steps: - - + - name: Checkout local actions uses: actions/checkout@v2 - @@ -17,11 +24,11 @@ jobs: build-debian: runs-on: ubuntu-latest steps: - - + - name: Checkout local actions uses: actions/checkout@v2 - name: Build web-greeter uses: "./.github/actions/build" with: - target-distro: debian \ No newline at end of file + target-distro: debian