From e8ceb07938c1b2aaf39aec8760dfd1c282153713 Mon Sep 17 00:00:00 2001 From: Rike Date: Sat, 27 Apr 2024 15:47:05 +0200 Subject: [PATCH] ... --- .github/workflows/data-upgrade.yml | 10 +++++++--- db/csv/quotes.csv | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/data-upgrade.yml b/.github/workflows/data-upgrade.yml index cb54a0e..dbc5a0a 100644 --- a/.github/workflows/data-upgrade.yml +++ b/.github/workflows/data-upgrade.yml @@ -55,10 +55,14 @@ jobs: name: json-files path: db/json/ + - name: Install MongoDB Tools + run: | + wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - + echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list + sudo apt-get update + sudo apt-get install -y mongodb-database-tools + - name: Import to MongoDB - uses: supercharge/mongodb-github-action@1.10.0 - with: - mongodb-version: ${{ matrix.mongodb-version }} run: | for file in db/json/*.json; do collection=$(basename "$file" .json) diff --git a/db/csv/quotes.csv b/db/csv/quotes.csv index 22db7e7..5295bd6 100644 --- a/db/csv/quotes.csv +++ b/db/csv/quotes.csv @@ -1,5 +1,5 @@ dialog,movie,character,_id -Deagol!,ObjectId(5cd95395de30eff6ebccde5d),ObjectId(5cd99d4bde30eff6ebccfe9e),ObjectId(5cd96e05de30eff6ebcce7e9) +Deagol!!,ObjectId(5cd95395de30eff6ebccde5d),ObjectId(5cd99d4bde30eff6ebccfe9e),ObjectId(5cd96e05de30eff6ebcce7e9) Deagol!,ObjectId(5cd95395de30eff6ebccde5d),ObjectId(5cd99d4bde30eff6ebccfe9e),ObjectId(5cd96e05de30eff6ebcce7ea) Deagol!,ObjectId(5cd95395de30eff6ebccde5d),ObjectId(5cd99d4bde30eff6ebccfe9e),ObjectId(5cd96e05de30eff6ebcce7eb) Give us that! Deagol my love,ObjectId(5cd95395de30eff6ebccde5d),ObjectId(5cd99d4bde30eff6ebccfe9e),ObjectId(5cd96e05de30eff6ebcce7ec)