fix: replace release-drafter with custom version extraction in release workflow
This commit is contained in:
@@ -19,16 +19,11 @@ jobs:
|
||||
|
||||
- name: Extract version from CHANGELOG
|
||||
id: changelog
|
||||
uses: release-drafter/release-drafter@v5
|
||||
with:
|
||||
changelog-file: CHANGELOG.md
|
||||
template: |
|
||||
name: ${{ version }}
|
||||
body: |
|
||||
${{ description }}
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
env:
|
||||
GHE_HOST: ${{ SERVER_URL }}
|
||||
run: |
|
||||
# Extract first non-empty line that starts with a version (e.g., v1.2.3 or 1.2.3)
|
||||
LATEST=$(grep -E '^[v]?[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -n1)
|
||||
echo "Latest version found: $LATEST"
|
||||
echo "version=$LATEST" >> $GITHUB_OUTPUT
|
||||
|
||||
# Create Release also creates an Tag
|
||||
# - name: Create git tag
|
||||
|
||||
Reference in New Issue
Block a user