diff --git a/.github/workflows/update-db.yml b/.github/workflows/update-db.yml index cdce915..f74e6e1 100644 --- a/.github/workflows/update-db.yml +++ b/.github/workflows/update-db.yml @@ -38,11 +38,12 @@ jobs: if [ -z "$geoLite2CityDir" ]; then exit 1; fi ls -la - mv -f "$geoLite2CityDir/GeoLite2-City.mmdb" src/GeoLite2-City.mmdb || exit 1 + geoliteCityDbDestPath="src/GeoLite2-City.mmdb" + mv -f "$geoLite2CityDir/GeoLite2-City.mmdb" "$geoliteCityDbDestPath" || exit 1 rm -rf "./$geoLite2CityDir" ls -la - git add GeoLite2-City.mmdb || exit 1 + git add "$geoliteCityDbDestPath" || exit 1 if ! git diff-index --quiet HEAD; then git commit -m "update GeoLite2-City.mmdb" || exit 1 git push || exit 1