fix(release): dereference tags for updater dates (#1732)

This commit is contained in:
Carlos Florêncio
2026-07-16 14:58:13 +01:00
committed by GitHub
parent a1be76db17
commit 2acc29dce1
2 changed files with 9 additions and 1 deletions
@@ -120,6 +120,14 @@ class ReleaseWorkflowContractTest(unittest.TestCase):
self.assertIn("xdg-utils", install)
self.assertIn("command -v xdg-open", install)
def test_updater_manifest_date_dereferences_annotated_tag(self) -> None:
generate = step_block("Generate and verify updater manifest")
self.assertIn("git show -s --format=%cI", generate)
self.assertRegex(
generate,
r"needs\.prepare\.outputs\.tag \}\}\^\{commit\}",
)
def test_macos_dmg_build_has_retry_timeout_and_diagnostics(self) -> None:
build = step_block("Build Tauri desktop app")
self.assertIn("timeout-minutes: 70", build)
+1 -1
View File
@@ -1542,7 +1542,7 @@ jobs:
RUSTUP_TOOLCHAIN: 1.88.0
run: |
set -euo pipefail
pub_date="$(git show -s --format=%cI '${{ needs.prepare.outputs.tag }}')"
pub_date="$(git show -s --format=%cI '${{ needs.prepare.outputs.tag }}^{commit}')"
node scripts/release/updater-manifest.mjs generate \
--assets-dir dist/release-assets \
--output dist/release-assets/latest.json \