Skip to content

Commit

Permalink
parametrize paths
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-artemkin committed Dec 27, 2023
1 parent c904494 commit b5285f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5285f3

Please sign in to comment.