From bb1547a4a97a2eafc9448f071658ed7d213434af Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 27 Mar 2024 09:37:24 -0400 Subject: [PATCH] Fixing woodpecker. --- .woodpecker.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index a9dc5c4..00b6585 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,22 +1,19 @@ -# clone: -# git: -# image: woodpeckerci/plugin-git -# settings: -# recursive: true -# submodule_update_remote: true -pipeline: +steps: prepare_repo: image: alpine:3 commands: - apk add git - #- git fetch --tags - git submodule init - git submodule update --recursive --remote + when: + - event: pull_request check_formatting: image: tmknom/prettier commands: - prettier -c src + when: + - event: pull_request check_typos: image: alpine:3 @@ -24,6 +21,8 @@ pipeline: - wget -O typos.tar.gz https://github.com/crate-ci/typos/releases/download/v1.14.12/typos-v1.14.12-x86_64-unknown-linux-musl.tar.gz - tar -xzf typos.tar.gz - ./typos src + when: + - event: pull_request check_documentation_build: image: alpine:3 @@ -34,8 +33,12 @@ pipeline: - ls -la mdbook - ./update-includes.sh - ./mdbook build . + when: + - event: pull_request dead_links: image: becheran/mlc:latest commands: - mlc src/en --offline --ignore-links "*localhost*" --ignore-links "*127.0.0.1*" --ignore-links /api + when: + - event: pull_request