name: initialize database description: initialize database by using database of test environment author: BinKrassDuFass inputs: MONGODB_SERVICE_NAME: description: 'Name of the MongoDB service' required: true default: 'mongo' runs: using: composite steps: - name: Install MongoDB tools run: sudo apt-get install -y mongodb-database-tools - name: Restore MongoDB Data run: mongorestore --uri "mongodb://${{inputs.MONGODB_SERVICE_NAME}}:27017" /.gitea/