From fb8856f35e538a821bcb2d2295249c94bb372c73 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Jun 2025 16:34:36 +0100 Subject: [PATCH] Update .forgejo/workflows/release.yml --- .forgejo/workflows/release.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 19d4901..2ed8b9a 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -114,7 +114,7 @@ jobs: REPO="resilient" TOKEN="${{ secrets.FORGEJO_TOKEN }}" VERSION="${{ steps.version.outputs.release_version }}" - FORGEJO_API="https://git.oguerreiro.com/api/v1" + API_BASE="https://git.oguerreiro.com/api/v1" echo "Fetching latest release tag..." LATEST_TAG=$(curl -sf -H "Authorization: token $TOKEN" \ @@ -141,16 +141,6 @@ jobs: CLOSED_ISSUES=$(echo "$CLOSED_ISSUES_JSON" | jq -r '.[] | "- [#\(.number)](\(.html_url)) \(.title)"') fi fi - - echo "Fetching closed issues since $LAST_TAG_DATE..." - # Get closed issues since last tag (if any) - if [[ "$LATEST_TAG" != "null" && "$LATEST_TAG" != "v$VERSION" ]]; then - CLOSED_ISSUES=$(curl -s -H "Authorization: token $TOKEN" \ - "$FORGEJO_API/repos/$REPO_OWNER/$REPO_NAME/issues?state=closed&since=$(date -u -d "$(git log -1 --format=%cI $LATEST_TAG)" +"%Y-%m-%dT%H:%M:%SZ")" \ - | jq -r '.[] | "- [#\(.number)](\(.html_url)) \(.title)"') - else - CLOSED_ISSUES="" - fi # Build release notes markdown {