From 990c4c0ec62dc9405e4f64311ae1f28aee05d709 Mon Sep 17 00:00:00 2001 From: Cedric Date: Sat, 2 Dec 2023 11:05:29 +0000 Subject: [PATCH] Prevent running validate when pushing on main Rational is as follow: - We ran validate-book on each push on the PR branch anyway - We will run release_book which is a superset of validate --- .github/workflows/validate-book-build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-book-build.yml b/.github/workflows/validate-book-build.yml index adf48e2..0fc64ef 100644 --- a/.github/workflows/validate-book-build.yml +++ b/.github/workflows/validate-book-build.yml @@ -1,5 +1,11 @@ name: Validate LaTeX Document -on: [ push, pull_request ] +on: + push: + branches: + - '**' # All branches + - '!main' # But main as will do it anyway and more in release_book + pull_request: + jobs: test_building_book: runs-on: ubuntu-latest