This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 554b1d16720 Clean up stale pagefind index files from S3 during
registry builds (#63234)
554b1d16720 is described below
commit 554b1d167203f738bac0441542eae5232496d309
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Mar 10 00:48:20 2026 +0000
Clean up stale pagefind index files from S3 during registry builds (#63234)
---
.github/workflows/registry-build.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/registry-build.yml
b/.github/workflows/registry-build.yml
index 094820c539f..0d35d02417b 100644
--- a/.github/workflows/registry-build.yml
+++ b/.github/workflows/registry-build.yml
@@ -239,7 +239,14 @@ jobs:
S3_BUCKET: ${{ steps.destination.outputs.bucket }}
run: |
aws s3 sync registry/_site/ "${S3_BUCKET}" \
- --cache-control "${REGISTRY_CACHE_CONTROL}"
+ --cache-control "${REGISTRY_CACHE_CONTROL}" \
+ --exclude "pagefind/*"
+ # Pagefind generates content-hashed filenames (e.g.
en_181da6f.pf_index).
+ # Each rebuild produces new hashes, so --delete is needed to remove
stale
+ # index files. This is separate from the main sync which
intentionally
+ # omits --delete to preserve files written by other steps
(publish-versions).
+ aws s3 sync registry/_site/pagefind/ "${S3_BUCKET}pagefind/" \
+ --cache-control "${REGISTRY_CACHE_CONTROL}" --delete
- name: "Publish version metadata"
env: