Compare commits

...

2 Commits

Author SHA1 Message Date
ksyasuda
155c65aada
update
All checks were successful
Build Changed / build_and_upload_changed_packages (push) Successful in 25s
2023-08-09 20:02:54 -07:00
ksyasuda
df5ccfc1a6
update build script again 2023-08-09 20:02:45 -07:00
2 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@ jobs:
- run: echo "Checking for changed packages"
- name: Loop through each package directory, check if version has changed, build if changed, and then upload
run: |
git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA > changed_files.txt
echo "Starting check"
for package_dir in ./*; do
if [ -d "$package_dir" ]; then
package_name=$(basename $package_dir)
if grep -q "$package_name" changed_files.txt; then
if git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep -q "$package_name"; then
echo "Checking version for: $package_name"
if [ -f "$package_dir/pyproject.toml" ]; then
current_version=$(python -c "import toml; data = toml.load('$package_dir/pyproject.toml'); print(data['project']['version']) if 'project' in data and 'version' in data['project'] else print(None)")

View File

@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="colored-output",
version="0.0.3",
version="0.0.4",
author="Kyle Yasuda",
author_email="suda@sudacode.com",
description="Colors",