From: Jason Boyer Date: Wed, 12 Jan 2022 12:17:19 +0000 (-0500) Subject: LP1903476 Followup; Remove perl action, limit to docs/ X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9f6ddd07a8e8c39c85a58ae3f0a2e00fe0364047;p=evergreen%2Ftadl.git 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 --- 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