aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2021-06-08 10:17:17 -0700
committerGravatar GitHub <noreply@github.com> 2021-06-08 10:17:17 -0700
commitc3cb6f00ee8f6a0ffaf514c3ae8c4161d7a1f807 (patch)
tree59b919b77f8ca875529a10b514a201a727d1c4fa
parentc996a26364aa9cdc05303e99dcc205b9cd03924c (diff)
downloadcoredns-c3cb6f00ee8f6a0ffaf514c3ae8c4161d7a1f807.tar.gz
coredns-c3cb6f00ee8f6a0ffaf514c3ae8c4161d7a1f807.tar.zst
coredns-c3cb6f00ee8f6a0ffaf514c3ae8c4161d7a1f807.zip
Fix timestamp issue for doc generating (#4683)
This PR will fix the issue of doc is not automated rendered through GitHub Actions anymore. It looks the issue is cause by the fact that in `fixup_file_mtime.sh` is only fixing files on source (.md) side, not on target (man/*.[1|5|7]) side. As a result Makefile will skip the rendering of doc as it assume everything will be update to date. This should fix the issue we were facing. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rwxr-xr-x.github/fixup_file_mtime.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/fixup_file_mtime.sh b/.github/fixup_file_mtime.sh
index 662c16dbd..af401a510 100755
--- a/.github/fixup_file_mtime.sh
+++ b/.github/fixup_file_mtime.sh
@@ -9,7 +9,7 @@ if [[ ! -f 'coredns.1.md' ]]; then
exit 1
fi
-for file in coredns.1.md corefile.5.md plugin/*/README.md; do
+for file in coredns.1.md corefile.5.md plugin/*/README.md man/*.1 man/*.5 man/*.7; do
time=$(git log --pretty=format:%cd -n 1 --date='format:%Y%m%d%H%M.%S' "${file}")
touch -m -t "${time}" "${file}"
done