CI: Skip GitHub actions for documentation-only changes

The CI takes a long time (sometimes hours) and shouldn't hold up
documentation-only commits.  We may also find CI for other changes starts
faster, if we're not using up as many credits.  When we process documentation
into something nicer (like `nimbus.guide`) we'll need to revisit this.

Syntax from [example ignoring paths](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-ignoring-paths).

Signed-off-by: Jamie Lokier <jamie@shareable.org>
This commit is contained in:
Jamie Lokier 2021-04-27 10:55:11 +01:00
parent 33481064fd
commit 2416d23507
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
name: nimbus-eth1 CI
on: [push, pull_request]
on:
push:
paths-ignore: ['doc/**', 'docs/**', '**/*.md']
pull_request:
paths-ignore: ['doc/**', 'docs/**', '**/*.md']
jobs:
build: