Browse Source

Run build workflow only when src/** changes

sisyphus
JezerM 3 years ago
parent
commit
b387cbacec
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 15
      .github/workflows/build.yml

15
.github/workflows/build.yml

@ -1,12 +1,19 @@
name: Build Test 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: jobs:
build-ubuntu: build-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
name: Checkout local actions name: Checkout local actions
uses: actions/checkout@v2 uses: actions/checkout@v2
- -
@ -17,11 +24,11 @@ jobs:
build-debian: build-debian:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
name: Checkout local actions name: Checkout local actions
uses: actions/checkout@v2 uses: actions/checkout@v2
- -
name: Build web-greeter name: Build web-greeter
uses: "./.github/actions/build" uses: "./.github/actions/build"
with: with:
target-distro: debian target-distro: debian

Loading…
Cancel
Save