From 2b90fd9816f384932cc16a37709bf613eafd04fa Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Sat, 23 Sep 2023 17:51:33 -0400 Subject: [PATCH] Include release_time in release JSON manifest For https://github.com/yushijinhun/authlib-injector/issues/219 --- .github/workflows/deploy_release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml index d10bce4..adfb6ae 100644 --- a/.github/workflows/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -38,6 +38,7 @@ jobs: build_number=$(grep -Pom1 '@@release\.build_number=\K.*(?=@@)' <<< $release_body) version_number=$(grep -Pom1 '@@release\.version_number=\K.*(?=@@)' <<< $release_body) asset_name='${{ github.event.release.assets[0].name }}' + release_published_at='${{ github.event.release.published_at }}' cd ~/deploy git config --local user.name "github-actions[bot]" @@ -49,12 +50,14 @@ jobs: jq -n \ --arg build_number "$build_number" \ --arg version "$version_number" \ + --arg release_time "$release_published_at" \ --arg download_url "https://authlib-injector.yushi.moe/artifact/$build_number/$asset_name" \ --arg sha256 "$sha256" \ ' { "build_number": $build_number|tonumber, "version": $version, + "release_time": $release_time, "download_url": $download_url, "checksums": { "sha256": $sha256