summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rwxr-xr-x.github/scripts/create_changelog.sh14
-rw-r--r--.github/workflows/release_dev_to_master.yaml4
2 files changed, 17 insertions, 1 deletions
diff --git a/.github/scripts/create_changelog.sh b/.github/scripts/create_changelog.sh
new file mode 100755
index 000000000..909a773e1
--- /dev/null
+++ b/.github/scripts/create_changelog.sh
@@ -0,0 +1,14 @@
+#! /bin/bash
+# This script is used in release-it as changelog
+# export RELEASE_MASTER=1 to release master changelog
+
+set -e
+
+master_version=$(git describe --tags --abbrev=0 --match "v[0-9].[0-9].[0-9]")
+latest_verion=$(git describe --tags --abbrev=0)
+
+if [[ $RELEASE_MASTER -eq 1 ]]; then
+ auto-changelog --stdout --starting-version $master_version --commit-limit 3
+else
+ auto-changelog --stdout --starting-version $latest_verion --unreleased --commit-limit 0
+fi \ No newline at end of file
diff --git a/.github/workflows/release_dev_to_master.yaml b/.github/workflows/release_dev_to_master.yaml
index 9df1f5e26..de338eb8d 100644
--- a/.github/workflows/release_dev_to_master.yaml
+++ b/.github/workflows/release_dev_to_master.yaml
@@ -56,7 +56,9 @@ jobs:
# TODO: Remove Stage Step
- name: Create Release
- run: release-it --ci --increment ${{ github.event.inputs.increment }}
+ run: |
+ export RELEASE_MASTER=1
+ release-it --ci --increment ${{ github.event.inputs.increment }}
Merge:
needs: Release
runs-on: ubuntu-latest