From 9abc8e6fed3d506157d6391b0de06c3db8bd4bc9 Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Wed, 19 Jun 2024 16:54:37 -0400 Subject: [PATCH] changing of current version --- .github/workflows/push_reproschema_py.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push_reproschema_py.yml b/.github/workflows/push_reproschema_py.yml index 3a8e9f5b4..d0773bf07 100644 --- a/.github/workflows/push_reproschema_py.yml +++ b/.github/workflows/push_reproschema_py.yml @@ -24,7 +24,7 @@ jobs: - name: Make changes to target repository id: changes run: | - LAST_VERSION=$(ls -lt releases/ | grep ^d | head -1 | awk '{print $9}') + LAST_VERSION=$(find . -mindepth 1 -maxdepth 1 -type d -exec stat -c '%Y %n' {} + | sort -n | tail -1 | cut -d' ' -f2-) echo "::set-output name=last_version::$LAST_VERSION" echo "Last Version" echo $LAST_VERSION