mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Update release.yml
This commit is contained in:
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -39,25 +39,24 @@ jobs:
|
|||||||
- name: Get commit history since last tag
|
- name: Get commit history since last tag
|
||||||
id: commit_history
|
id: commit_history
|
||||||
run: |
|
run: |
|
||||||
# Znajdź ostatni tag (jeśli istnieje)
|
|
||||||
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
||||||
|
|
||||||
# Jeśli nie ma ostatniego tagu, użyj pustego (pobierz od początku repo)
|
|
||||||
if [ -z "$LAST_TAG" ]; then
|
if [ -z "$LAST_TAG" ]; then
|
||||||
RANGE="HEAD"
|
RANGE="HEAD"
|
||||||
else
|
else
|
||||||
RANGE="$LAST_TAG..HEAD"
|
RANGE="$LAST_TAG..HEAD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Pobierz listę commitów (tylko subject/tytuł, format: - Commit message)
|
# Pobierz listę commitów i przefiltruj tylko te znaczące
|
||||||
HISTORY=$(git log --pretty=format:"- %s" $RANGE)
|
HISTORY=$(git log --pretty=format:"%s" $RANGE | \
|
||||||
|
grep -vE '^\s*(add|update|fix|change|edit|mod|modify|cleanup|misc|typo|readme|temp|test|debug)\b' | \
|
||||||
# Jeśli brak commitów, ustaw domyślną wiadomość
|
grep -vE '^(\s*Update|Add|Fix|Change|Edit|Refactor|Bump|Minor|Misc|Readme|Test)[^a-zA-Z0-9]*$' | \
|
||||||
|
sed 's/^/- /')
|
||||||
|
|
||||||
if [ -z "$HISTORY" ]; then
|
if [ -z "$HISTORY" ]; then
|
||||||
HISTORY="No changes since last release."
|
HISTORY="No significant changes since last release."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ustaw multi-line output z delimiterem (zachowuje oryginalne nowe linie)
|
|
||||||
echo "commit_history<<EOF" >> $GITHUB_OUTPUT
|
echo "commit_history<<EOF" >> $GITHUB_OUTPUT
|
||||||
echo "$HISTORY" >> $GITHUB_OUTPUT
|
echo "$HISTORY" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user