From 9731bf24ed643ea97ad88207aea48e87e0bce7a0 Mon Sep 17 00:00:00 2001 From: ji Date: Sun, 4 Aug 2024 17:00:59 +0200 Subject: [PATCH] fixed update_version2.sh --- .github/workflows/galaxy_build.yml | 8 ++++---- plugin_requirements.yml | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/galaxy_build.yml b/.github/workflows/galaxy_build.yml index 4d4b7d5..c322ba2 100644 --- a/.github/workflows/galaxy_build.yml +++ b/.github/workflows/galaxy_build.yml @@ -27,13 +27,13 @@ jobs: id: check_changes run: | # Überprüfen Sie, ob sich plugin_requirements.yml geändert hat - dif=git diff $PREV_COMMIT_ID $COMMIT_ID 'plugin_requirements.yml' HEAD + dif= echo $dif - CHANGED=$( dif | grep -q 'plugin_requirements.yml' && echo "true" || echo "false") - if [ "$CHANGED" = "true" ]; then + CHANGED=$(git diff HEAD 'plugin_requirements.yml') + if [ -z "$CHANGED" ]; then PLUGIN_REQS=$(cat plugin_requirements.yml) - APT_PKG_LIST=$(cat .github/workflows/apt-packages.yml) echo $PLUGIN_REQS + APT_PKG_LIST=$(cat .github/workflows/apt-packages.yml) echo $APT_PKG_LIST echo "PLUGIN_REQS=$PLUGIN_REQS" >> $GITHUB_ENV echo "APT_PKG_LIST=$APT_PKG_LIST" >> $GITHUB_ENV diff --git a/plugin_requirements.yml b/plugin_requirements.yml index e04a48a..c4394ef 100644 --- a/plugin_requirements.yml +++ b/plugin_requirements.yml @@ -2,5 +2,4 @@ apt: ansible python: redfish - - matplotlib1 \ No newline at end of file + pandas \ No newline at end of file