Skip to content

Prevent running validate when pushing on main #584

Prevent running validate when pushing on main

Prevent running validate when pushing on main #584

name: Validate LaTeX Document
on: [ push, pull_request ]

Check failure on line 2 in .github/workflows/validate-book-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/validate-book-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
branches:
- '**' # All branches
- '!main' # But main as will do it anyway and more in release_book
jobs:
test_building_book:
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Test baking the release versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make -j build_serif_pdf build_ebook