Skip to content

Commit 2e3e684

Browse files
committed
ci(docs): Update cloudfront invalidation command
1 parent d59aad3 commit 2e3e684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105

106106
- name: Generate list of changed files for CloudFront to invalidate
107107
run: |
108-
pushd docs/_build/html; FILES=$(find . -name \* -print | grep html | cut -c2- | sort | uniq | tr '\n' ' '); popd
108+
FILES=$(find docs/_build/html -exec realpath --relative-to docs/_build/html {} \; | awk '{print "/"$0}' | grep "html\|searchindex.js");
109109
for file in $FILES; do
110110
echo $file
111111
# add bare directory to list of updated paths when we see index.html

0 commit comments

Comments
 (0)