From ca0cf5b7a08c7fcd811a98843efd4ac148eed3d6 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 9 Jun 2024 22:46:29 +0200 Subject: [PATCH] Update updater --- .github/workflows/updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 281d059..362ef37 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -17,7 +17,7 @@ current_version=$(cat manifest.toml | tomlq -j '.version|split("~")[0]') repo=$(cat manifest.toml | tomlq -j '.upstream.code|split("https://github.com/")[1]') # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) -version_raw=$(curl --silent "https://api.github.com/repos/$repo/commits/master" | jq -r ".commit.author.date") +version_raw=$(curl --silent "https://api.github.com/repos/$repo/commits/master" | jq -r ".commit.committer.date") version=$(date -d "$version_raw" +%Y.%m.%d.%H.%M.%S) commit_hash=$(curl --silent "https://api.github.com/repos/$repo/commits/master" | jq -r ".sha")