We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef0b5d commit f2fe6b0Copy full SHA for f2fe6b0
.github/workflows/build-specs.yml
@@ -45,7 +45,13 @@ jobs:
45
run: |
46
set -e
47
for file in ./**/*.bs; do
48
- bikeshed -f spec "$file"
+ # We use `date` to build a YYYY-MM-DD date rather than using git's
49
+ # `--format=%as` because we want the date not to depend on the
50
+ # committer's timezone. We use UTC to avoid depending on the build
51
+ # runner's timezone as well.
52
+ TIMESTAMP="$(git log -1 --format=%at "$file")"
53
+ SHORT_DATE="$(date --date=@"$TIMESTAMP" --utc +%F)"
54
+ bikeshed -f --md-date="$SHORT_DATE" spec "$file"
55
done
56
- name: Rename to index.html
57
# The default pages for directories are assumed to be Overview.html, but
0 commit comments