From df5ccfc1a60e14c82f800a60b8379579245a1b63 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Wed, 9 Aug 2023 20:02:45 -0700 Subject: [PATCH] update build script again --- .gitea/workflows/build_changed.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build_changed.yml b/.gitea/workflows/build_changed.yml index 4c7bc01..8fa78ab 100644 --- a/.gitea/workflows/build_changed.yml +++ b/.gitea/workflows/build_changed.yml @@ -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)")