Skip to content

Commit 931c9ab

Browse files
BananeweizenCalixte
authored andcommitted
Ignore sitemap changes again
Completely removing the special handling of the sitemap timestamps was wrong. While the other changes in the build avoided that timestamps change with _every_ build, they will still change after real documentation updates (like version number changes). Therefore re-introduce the special handling of the sitemaps file.
1 parent 83e398f commit 931c9ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.ci/validation.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ set -e
44
case $1 in
55

66
git-diff)
7+
printf "Changes to only docs/sitemap.xml:\n"
8+
git diff docs/sitemap.xml
9+
10+
# file below is always modified on a run and updated with the current date
11+
# such a change is ignored and must be verified manually instead
12+
git checkout HEAD -- docs/sitemap.xml
13+
714
if [ "$(git status | grep 'Changes not staged\|Untracked files')" ]; then
815
printf "Please clean up.\nGit status output:\n"
916
printf "Top 300 lines of diff:\n"
1017
git status
1118
git diff | head -n 300
1219
false
13-
fi
20+
fi
1421
;;
1522

1623
*)

0 commit comments

Comments
 (0)