Update .forgejo/workflows/release.yml
Some checks failed
Release / release (push) Failing after 3m15s
Some checks failed
Release / release (push) Failing after 3m15s
This commit is contained in:
parent
511e09fb86
commit
fb8856f35e
1 changed files with 1 additions and 11 deletions
|
@ -114,7 +114,7 @@ jobs:
|
||||||
REPO="resilient"
|
REPO="resilient"
|
||||||
TOKEN="${{ secrets.FORGEJO_TOKEN }}"
|
TOKEN="${{ secrets.FORGEJO_TOKEN }}"
|
||||||
VERSION="${{ steps.version.outputs.release_version }}"
|
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..."
|
echo "Fetching latest release tag..."
|
||||||
LATEST_TAG=$(curl -sf -H "Authorization: token $TOKEN" \
|
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)"')
|
CLOSED_ISSUES=$(echo "$CLOSED_ISSUES_JSON" | jq -r '.[] | "- [#\(.number)](\(.html_url)) \(.title)"')
|
||||||
fi
|
fi
|
||||||
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
|
# Build release notes markdown
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue