diff --git a/.github/workflows/pdoc.yml b/.github/workflows/pdoc.yml index 7cf1e1a3..1645adde 100644 --- a/.github/workflows/pdoc.yml +++ b/.github/workflows/pdoc.yml @@ -2,8 +2,9 @@ name: Pdoc on: push: - tags: - - v*.*.* + tags: + - v*.*.* + workflow_dispatch: jobs: build: @@ -35,7 +36,7 @@ jobs: - name: Run sed # Removes insanely-long parameter definition from docs working-directory: ./api_documentation run: | - sed -i '' -E 's#(AhocorasickTokenizer\().*(markup_text:)#\1),
\2#g' eyecite/find.html eyecite/index.html + sed -i -E 's#(AhocorasickTokenizer\().*(markup_text:)#\1),
\2#g' eyecite/find.html eyecite/index.html - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 diff --git a/CHANGES.md b/CHANGES.md index 0b6fcb17..e23d505a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,8 @@ Changes: - CI: benchmark runs are superseded when a PR is updated, time out after 15 minutes, and pin their third-party action to a commit SHA. #332 Fixes: +- CI: fix `sed` invocation syntax in the Pdoc workflow on GNU/Linux runners and + add `workflow_dispatch` trigger. #316 - CI: harden the benchmark's `repository_dispatch` job against shell script injection by passing `client_payload` values through the environment and validating their shape, instead of interpolating them into `run:`. #337