Update .forgejo/workflows/release.yml
Some checks failed
Release / release (push) Failing after 3m15s

This commit is contained in:
root 2025-06-25 16:34:36 +01:00
parent 511e09fb86
commit fb8856f35e

View file

@ -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" \
@ -142,16 +142,6 @@ jobs:
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
{
echo "## Release v$VERSION"