From 0c12aaeafe5b66696de851f206a2efb3b5cedc02 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Jun 2025 17:12:02 +0100 Subject: [PATCH] Update .forgejo/workflows/release.yml --- .forgejo/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 8865b4f..2a6fef7 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -76,7 +76,13 @@ jobs: echo "Latest tag is: $LATEST_TAG" # Get ISO timestamp of the latest tag commit - COMMIT_DATE=$(git log -1 --format=%cI "$LATEST_TAG") + LATEST_TAG_COMMIT_DATE=$(curl -sf -H "Authorization: token $TOKEN" \ + "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/refs/tags/$LATEST_TAG" \ + | jq -r '.object.sha' \ + | xargs -I{} curl -sf -H "Authorization: token $TOKEN" \ + "$API_BASE/repos/$REPO_OWNER/$REPO_NAME/git/commits/{}" \ + | jq -r '.committer.date') + COMMIT_DATE="$LATEST_TAG_COMMIT_DATE" echo "Fetching closed issues since $COMMIT_DATE..." CLOSED_ISSUES_JSON=$(curl -sf -H "Authorization: token $TOKEN" \