From 2d39d4966a0f10ee4e28a9495ae01ca319a34a35 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 21 Dec 2024 17:20:49 -0800 Subject: workflows: only generate docs when appropriate, and don't do tests when only docs change --- .github/workflows/sanitizer.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows/sanitizer.yml') diff --git a/.github/workflows/sanitizer.yml b/.github/workflows/sanitizer.yml index e0d9c579..f7c37be3 100644 --- a/.github/workflows/sanitizer.yml +++ b/.github/workflows/sanitizer.yml @@ -1,5 +1,9 @@ name: sanitize -on: [push, pull_request] +on: + push: + paths-ignore: ["docs/**", "**.adoc", "**.md"] + pull_request: + paths-ignore: ["docs/**", "**.adoc", "**.md"] jobs: sanitize: env: @@ -9,8 +13,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - sanitizer: [ address, undefined, thread ] - os: [ ubuntu-latest ] + sanitizer: [address, undefined, thread] + os: [ubuntu-latest] steps: - uses: actions/checkout@v1 -- cgit v1.2.3-70-g09d2