Skip to content

Commit

Permalink
Merge pull request #1075 from lsst-sqre/tickets/DM-44567
Browse files Browse the repository at this point in the history
DM-44567: Don't upload docs if they haven't changed
  • Loading branch information
rra authored Aug 16, 2024
2 parents 4c67e3c + 4f09e66 commit 43abe2d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ jobs:
# Ensure the documentation gets the right version.
fetch-depth: 0

- name: Filter paths
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- "docs/**"
- name: Update package lists
run: sudo apt-get update

Expand All @@ -156,7 +164,8 @@ jobs:
if: >
github.event_name != 'merge_group'
&& (github.event_name != 'pull_request'
|| startsWith(github.head_ref, 'tickets/'))
|| (startsWith(github.head_ref, 'tickets/')
&& steps.filter.outputs.docs == 'true'))
linkcheck:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 43abe2d

Please sign in to comment.