Skip to content

Commit ac68590

Browse files
committed
change logic for tag creation
1 parent c216cf6 commit ac68590

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

.github/workflows/release-trigger.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@ jobs:
1616
run: |
1717
git config --global user.name "SDK Releaser Bot"
1818
git config --global user.email "[email protected]"
19-
20-
for file in $(git diff --name-only HEAD~1..HEAD | grep pyproject.toml); do
21-
# Extract the change regarding the version from the pyproject.toml file
22-
version_changes=$(git diff HEAD~1..HEAD $file | grep "version =")
23-
# Check if the extracted change is not empty
24-
if [ -n "$version_changes" ]; then
25-
# Split all found version changes, so we can compare the old and new version.
26-
splitted_version_changes=($(echo "$version_changes" | grep -oP '(?<=version = )[^ ]*'))
27-
# Only create a tag if there has been an actual change in the version, not just a format change.
28-
if [ $(echo "${splitted_version_changes[@]}" | tr ' ' '\n' | sort -u | wc -l) -ne 1 ]; then
29-
dirpath=$(dirname $file)
30-
# Extract just the version number
31-
current_version=$(grep -o "version = .*" ${file} | cut -d '=' -f 2-)
32-
dirpath=$(dirname $file)
33-
cleaned_version=$(echo "$current_version" | tr -d '" ')
34-
# Create the tag based on the updated service and the new version
35-
tag=$(echo "${dirpath}/${cleaned_version}")
36-
git tag -a $tag -m "Release $cleaned_version"
37-
git push origin tag $tag
38-
fi
39-
fi
40-
done
19+
20+
.github/trigger_script.sh
21+

core/poetry.lock

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "stackit-core"
3-
version = "v0.0.1a3"
3+
version = "v0.0.1a7"
44
authors = ["STACKIT Developer Tools <[email protected]>"]
55
description = "Core functionality for the STACKIT SDK for Python"
66
readme = "README.md"

0 commit comments

Comments
 (0)