Page Build
on:
pagebuild:
Can triger endlessly
Filters
on:
push:
paths-ignore:
- '_data/galleryjson.json'
- '_includes/gallery.json'
branches:
- master
triggers on all push’s to master, excecpt of those 2 files (it is unclear what happens if a push includes MORE than those 2 files, it likely triggers). If you figure it out, please update this page
on:
pull_request:
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.webp'
tags-ignore:
- automerge
Triggers on all pull requests that include images, but do not have the tags automerge
ALL PR triggers
All PR request triggers have extra data of the PR number, actions built for these don’t cleanly pull over to other triggers since the other triggers do not have the PR # and wiring it in may not be easy.
Bail Out if not head
If you are building an action that requires checking files back in, or you think you might end up running a bunch of copiees
The following check will prevent a step from running if you are not the head revision
if: "github.ref == 'refs/heads/master'" #if we aren't the head revision, we won't check in, so bail out
https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions