Compare commits

..

No commits in common. "155c65aadaaeb393b3c3956e9e4c1f02bd8771f4" and "cc762e3f96c183d48c2af3df08383901309c555a" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@ jobs:
- run: echo "Checking for changed packages" - run: echo "Checking for changed packages"
- name: Loop through each package directory, check if version has changed, build if changed, and then upload - name: Loop through each package directory, check if version has changed, build if changed, and then upload
run: | run: |
echo "Starting check" git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA > changed_files.txt
for package_dir in ./*; do for package_dir in ./*; do
if [ -d "$package_dir" ]; then if [ -d "$package_dir" ]; then
package_name=$(basename $package_dir) package_name=$(basename $package_dir)
if git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep -q "$package_name"; then if grep -q "$package_name" changed_files.txt; then
echo "Checking version for: $package_name" echo "Checking version for: $package_name"
if [ -f "$package_dir/pyproject.toml" ]; then 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)") 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( setuptools.setup(
name="colored-output", name="colored-output",
version="0.0.4", version="0.0.3",
author="Kyle Yasuda", author="Kyle Yasuda",
author_email="suda@sudacode.com", author_email="suda@sudacode.com",
description="Colors", description="Colors",