From 9f6ddd07a8e8c39c85a58ae3f0a2e00fe0364047 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Wed, 12 Jan 2022 07:17:19 -0500 Subject: [PATCH] LP1903476 Followup; Remove perl action, limit to docs/ Since the 'ubuntu-latest' image includes perl 5.30 the actions-setup-perl step just adds more time to the process. GitHub Actions can be limited to (or exclude) paths so now docs will only be built when pushes or PRs happen under docs/. Also added a couple name tags for the interface. Signed-off-by: Jason Boyer --- .github/workflows/docs.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0d41f03b6e..29cc5f8adf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,14 +1,19 @@ -name: docs -on: [push, pull_request] +name: Build Docs +on: + push: + paths: + - 'docs/**' + pull_request: + paths: + - 'docs/**' jobs: - Build-And-Publish-Docs: + build_docs: + name: Build Docs runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: '5.34' - - run: | + - name: Generate Docs Package + run: | cd docs sed -i 's/branches.*/branches: [HEAD]/' site.yml perl generate_docs.pl --base-url http://example.com -- 2.43.2