Compare commits
1 Commits
dc43ca7b53
...
4a82d8afa8
Author | SHA1 | Date | |
---|---|---|---|
4a82d8afa8 |
@ -52,7 +52,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
success: ${{ steps.set_flag.outputs.success }}
|
success: ${{ steps.set_flag.outputs.success }}
|
||||||
# srvurl: ${{ steps.set_srvurl.outputs.srvurl }}
|
srvurl: ${{ steps.set_srvurl.outputs.srvurl }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.1.7
|
||||||
with:
|
with:
|
||||||
@ -63,44 +63,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
CHANGES=$(git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline)
|
CHANGES=$(git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline)
|
||||||
echo "$CHANGES"
|
echo "$CHANGES"
|
||||||
$CHANGES_FEAT=$(echo "$CHANGES" | grep -i "feat")
|
if [ -z "$CHANGES" ]; then echo "changes=false" >> "$GITEA_OUTPUT"; else echo "changes=true" >> "$GITEA_OUTPUT"; fi
|
||||||
$CHANGES_FIX=$(echo "$CHANGES" | grep -i "fix")
|
|
||||||
$CHANGES_DEP=$(echo "$CHANGES" | grep -i "dependencies")
|
|
||||||
$CHANGES_OTHER=$(echo "$CHANGES" | grep -i "other")
|
|
||||||
if [ -z "$CHANGES" ]
|
|
||||||
then
|
|
||||||
echo "changes=false" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_feat=false" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_fix=false" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_dep=false" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_other=false" >> "$GITEA_OUTPUT"
|
|
||||||
else
|
|
||||||
echo "changes=true" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_feat=CHANGES_FEAT" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_fix=CHANGES_FIX" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_dep=CHANGES_DEP" >> "$GITEA_OUTPUT"
|
|
||||||
echo "changes_other=CHANGES_OTHER" >> "$GITEA_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Create changelog
|
|
||||||
id: create_changelog
|
|
||||||
run: |
|
|
||||||
if test "${{ steps.changes.outputs.changes }}" = "true"
|
|
||||||
then
|
|
||||||
cat <<EOF >> changelog.md
|
|
||||||
## 🚀 Features
|
|
||||||
$CHANGES_FEAT
|
|
||||||
|
|
||||||
## 🐛 Bug Fixes
|
|
||||||
$CHANGES_FIX
|
|
||||||
|
|
||||||
## 📦 Dependencies
|
|
||||||
$CHANGES_DEP
|
|
||||||
|
|
||||||
## 💬 Other
|
|
||||||
$CHANGES_OTHER
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set server URL
|
- name: Set server URL
|
||||||
id: set_srvurl
|
id: set_srvurl
|
||||||
@ -131,36 +94,36 @@ jobs:
|
|||||||
# default_bump: minor
|
# default_bump: minor
|
||||||
# # default_bump: false
|
# # default_bump: false
|
||||||
|
|
||||||
# - name: Build Changelog
|
- name: Build Changelog
|
||||||
# uses: mikepenz/release-changelog-builder-action@v4
|
uses: mikepenz/release-changelog-builder-action@v4
|
||||||
# id: build_changelog
|
id: build_changelog
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ gitea.token }}
|
GITHUB_TOKEN: ${{ gitea.token }}
|
||||||
# with:
|
with:
|
||||||
# platform: "gitea"
|
platform: "gitea"
|
||||||
# configurationJson: |
|
configurationJson: |
|
||||||
# {
|
{
|
||||||
# "pr_template": "- #{{TITLE}} ([##{{NUMBER}}](#{{URL}}))",
|
"pr_template": "- #{{TITLE}} ([##{{NUMBER}}](#{{URL}}))",
|
||||||
# "empty_template": "- no changes",
|
"empty_template": "- no changes",
|
||||||
# "categories": [
|
"categories": [
|
||||||
# {
|
{
|
||||||
# "title": "## 💬 Other",
|
"title": "## 💬 Other",
|
||||||
# "labels": ["type/other"]
|
"labels": ["type/other"]
|
||||||
# },
|
},
|
||||||
# {
|
{
|
||||||
# "title": "## 📦 Dependencies",
|
"title": "## 📦 Dependencies",
|
||||||
# "labels": ["type/dependencies"]
|
"labels": ["type/dependencies"]
|
||||||
# },
|
},
|
||||||
# {
|
{
|
||||||
# "title": "## 🚀 Features",
|
"title": "## 🚀 Features",
|
||||||
# "labels": ["type/feature"]
|
"labels": ["type/feature"]
|
||||||
# },
|
},
|
||||||
# {
|
{
|
||||||
# "title": "## 🐛 Bug Fixes",
|
"title": "## 🐛 Bug Fixes",
|
||||||
# "labels": ["type/bugfix"]
|
"labels": ["type/bugfix"]
|
||||||
# },
|
},
|
||||||
# ]
|
]
|
||||||
# }
|
}
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -170,7 +133,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag: ${{ steps.get_next_version.outputs.tag }}
|
tag: ${{ steps.get_next_version.outputs.tag }}
|
||||||
name: ${{ steps.get_next_version.outputs.tag }}
|
name: ${{ steps.get_next_version.outputs.tag }}
|
||||||
body_path: changelog.md
|
body: ${{ steps.build_changelog.outputs.changelog }}
|
||||||
|
|
||||||
- name: Set success/fail flag
|
- name: Set success/fail flag
|
||||||
id: set_flag
|
id: set_flag
|
||||||
|
Loading…
Reference in New Issue
Block a user