mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-24 22:12:17 -03:00
Update release.yml
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "final_tag=v${{ steps.version.outputs.base_version }}" >> $GITHUB_OUTPUT
|
echo "final_tag=v${{ steps.version.outputs.base_version }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# ZMIANA: Zamiast tylko ostatniego commita, pobierz historię commitów od ostatniego tagu
|
# ZMIANA: Poprawione obsługa multi-line output (z delimiterem EOF, bez zastępowania \n)
|
||||||
- name: Get commit history since last tag
|
- name: Get commit history since last tag
|
||||||
id: commit_history
|
id: commit_history
|
||||||
run: |
|
run: |
|
||||||
@@ -52,15 +52,15 @@ jobs:
|
|||||||
# Pobierz listę commitów (tylko subject/tytuł, format: - Commit message)
|
# Pobierz listę commitów (tylko subject/tytuł, format: - Commit message)
|
||||||
HISTORY=$(git log --pretty=format:"- %s" $RANGE)
|
HISTORY=$(git log --pretty=format:"- %s" $RANGE)
|
||||||
|
|
||||||
# Zastąp nowe linie na \\n, aby dobrze wyglądało w output
|
|
||||||
HISTORY=${HISTORY//$'\n'/\\n}
|
|
||||||
|
|
||||||
# Jeśli brak commitów, ustaw domyślną wiadomość
|
# Jeśli brak commitów, ustaw domyślną wiadomość
|
||||||
if [ -z "$HISTORY" ]; then
|
if [ -z "$HISTORY" ]; then
|
||||||
HISTORY="No changes since last release."
|
HISTORY="No changes since last release."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "commit_history=$HISTORY" >> $GITHUB_OUTPUT
|
# Ustaw multi-line output z delimiterem (zachowuje oryginalne nowe linie)
|
||||||
|
echo "commit_history<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "$HISTORY" >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user