From 87ddfab66ec89dfee80cac01fb65b0e517967fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B6rrle?= Date: Thu, 14 Dec 2023 09:50:14 +0100 Subject: [PATCH] echo dependencies --- .github/workflows/check-versions.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-versions.yml b/.github/workflows/check-versions.yml index ae178c7..7d16aa3 100644 --- a/.github/workflows/check-versions.yml +++ b/.github/workflows/check-versions.yml @@ -33,16 +33,20 @@ jobs: run: poetry install - name: 🚀 Check Manifest.json run: | - current_version=$(poetry version | awk '{print $2}') + pyproject_version=$(poetry version | awk '{print $2}') + echo "pyproject.toml version: $pyproject_version" manifest_version=$(jq -r '.version' custom_components/qss/manifest.json) - if [[ "$current_version" != "$manifest_version" ]]; then - echo "Error: Version mismatch between pyproject.toml ($current_version) and manifest.json ($manifest_version)" + echo "manifest.json version: $manifest_version" + if [[ "$pyproject_version" != "$manifest_version" ]]; then + echo "Error: Version mismatch between pyproject.toml ($pyproject_version) and manifest.json ($manifest_version)" exit 1 fi - current_dependencies=$(poetry show --only main | awk -F' ' '{print $1}') + pyproject_dependencies=$(poetry show --only main | awk -F' ' '{print $1}') + echo "pyproject.toml dependecies: $pyproject_dependencies" manifest_dependencies=$(jq -r '.requirements[]' custom_components/qss/manifest.json) - for dependency in $current_dependencies; do + echo "manifest.json dependecies: $manifest_dependencies" + for dependency in $pyproject_dependencies; do matching_dependency=$(echo "$manifest_dependencies" | grep "$dependency") if [[ -z "$matching_dependency" ]]; then echo "Error: Missing dependency $dependency in manifest.json"