From a13dce35adeb8b05fa6fd421c708e3ebac9f20aa Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Fri, 12 Jul 2024 19:59:04 +0800 Subject: [PATCH] ci: dry run docs on pull request (#15) * ci: dry run docs on pull request * Fix mdbook --- .github/workflows/docs.yml | 4 ++++ docs/src/usage.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5c0a3b9f..097e69f1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,9 @@ on: push: branches: - main + pull_request: + branches: + - main permissions: contents: write @@ -63,3 +66,4 @@ jobs: with: branch: gh-pages folder: target/doc + dry-run: ${{ github.event_name == 'pull_request' }} diff --git a/docs/src/usage.md b/docs/src/usage.md index 0e82729c..22ab64d1 100644 --- a/docs/src/usage.md +++ b/docs/src/usage.md @@ -29,7 +29,7 @@ mkdir -p /tmp/btc-data && ./src/bitcoind -datadir=/tmp/btc-data -txindex -coinst Keep the `bitcoind` process running for a while and ensure it has synced a number of blocks. -``` +```text ... 8-29T01:17:02Z' progress=0.001342 cache=33.0MiB(304329txo) 2024-07-11T17:23:10Z UpdateTip: new best=00000000000008c273c4c215892eacbafec33c199cfd3d9b539cdb6aafc39f54 height=142979 version=0x00000001 log2_work=66.385350 tx=1392173 date='2011-08-29T01:23:19Z' progress=0.001342 cache=33.0MiB(304442txo)