diff --git a/.github/workflows/test-build-mariadb.yml b/.github/workflows/test-build-mariadb.yml index 9c1390c14..200d3fb80 100644 --- a/.github/workflows/test-build-mariadb.yml +++ b/.github/workflows/test-build-mariadb.yml @@ -31,7 +31,7 @@ jobs: - name: Run db meta script run: | script_path=./packages/watchmen-storage-mysql/meta-scripts - for version in `ls ${script_path}` + for version in `ls -v ${script_path}` do if [ -d ${script_path}/$version ];then for file in ${script_path}/$version/* @@ -44,7 +44,7 @@ jobs: - name: Run db data script run: | script_path=./packages/watchmen-storage-mysql/data-scripts - for version in `ls ${script_path}` + for version in `ls -v ${script_path}` do if [ -d ${script_path}/$version ];then for file in ${script_path}/$version/* diff --git a/.github/workflows/test-build-mssql.yml b/.github/workflows/test-build-mssql.yml index d30504336..2589517e7 100644 --- a/.github/workflows/test-build-mssql.yml +++ b/.github/workflows/test-build-mssql.yml @@ -35,7 +35,7 @@ jobs: - name: Run db meta script run: | script_path=./packages/watchmen-storage-mssql/meta-scripts - for version in `ls ${script_path}` + for version in `ls -v ${script_path}` do if [ -d ${script_path}/$version ];then for file in ${script_path}/$version/* @@ -48,7 +48,7 @@ jobs: - name: Run db data script run: | script_path=./packages/watchmen-storage-mssql/data-scripts - for version in `ls ${script_path}` + for version in `ls -v ${script_path}` do if [ -d ${script_path}/$version ];then for file in ${script_path}/$version/*