Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: Build & Publish to PyPi
run: |
pip install poetry
cd $PACKAGE_PATH
poetry publish --build --username="__token__" --no-interaction --password="${{ secrets.PYPI_TOKEN }}"
cd $PACKAGE_PATH
poetry publish --build --username="__token__" --no-interaction --password="${{ secrets.PYPI_TOKEN }}"
31 changes: 31 additions & 0 deletions .github/workflows/release-trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Version Update

on:
push:
branches:
- main

jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Push tag for each updated package
run: |
git config --global user.name "GitHub Action"
git config --global user.email "github-action@github.com"

for file in $(git diff --name-only HEAD~1..HEAD | grep pyproject.toml); do
if git diff HEAD~1..HEAD $file | grep "version ="; then
dirpath=$(dirname $file)
version=$(grep -o "version = .*" ${file} | cut -d '=' -f 2-)
dirpath=$(dirname $file)
relpath=${file#*/core|stackit/*}
cleaned_version=$(echo "$version" | tr -d '" ')
tag=$(echo "${dirpath}/${cleaned_version}")
git tag -a $tag -m "Release $version"
git push origin --tags
else
echo "No change in version found."
fi
done
2 changes: 1 addition & 1 deletion services/dns/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ per-file-ignores = """
# E501: long descriptions/string values might lead to lines that are too long
# B028: stacklevel for deprecation warning is irrelevant
./src/stackit/*/api/default_api.py: F841,B028,E501
"""
"""
Loading