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:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Auto Release with Version Patch
|
name: Auto Release with Version Patch and Commit Message
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -36,6 +36,14 @@ jobs:
|
|||||||
|
|
||||||
echo "final_tag=$TAG" >> $GITHUB_OUTPUT
|
echo "final_tag=$TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Get latest commit message
|
||||||
|
id: last_commit
|
||||||
|
run: |
|
||||||
|
msg=$(git log -1 --pretty=%B)
|
||||||
|
# Zamiana nowych linii na \n aby ładnie wyświetlać w release body
|
||||||
|
msg=${msg//$'\n'/\\n}
|
||||||
|
echo "commit_msg=$msg" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
@@ -44,5 +52,10 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
📦 Release based on pyproject.toml version `${{ steps.version.outputs.base_version }}`
|
📦 Release based on pyproject.toml version `${{ steps.version.outputs.base_version }}`
|
||||||
🔁 Auto-postfix to avoid duplicate tag: `${{ steps.unique_tag.outputs.final_tag }}`
|
🔁 Auto-postfix to avoid duplicate tag: `${{ steps.unique_tag.outputs.final_tag }}`
|
||||||
|
|
||||||
|
📝 Last commit message:
|
||||||
|
```
|
||||||
|
${{ steps.last_commit.outputs.commit_msg }}
|
||||||
|
```
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user