daml/workspace_status.sh
Gary Verhaegen f044dcebca
fix sitemap generation (#5775)
With the change in release model (VERSION to LATEST), I forgot to change
the workspace_status script. The result is that our sitemap will forever
indicate all the pages in the docs have been last modified on Feb 25,
discouraging search engines from indexing them again at any point since.

This PR fixes that by updating the workspace_status script, which
hopefully should result in search engines indexing us again.

CHANGELOG_BEGIN
CHANGELOG_END
2020-04-30 15:02:08 +02:00

11 lines
469 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
# This is used for building the sitemap, so we want the date of publication,
# not the date of the release commit itself, hence we don't need to look into
# LATEST to find the date of the referred commit.
echo "STABLE_VERSION_DATE $(TZ=UTC git log -n1 -s --format=%cd --date=short -- LATEST)"