prepush hooks

This commit is contained in:
2023-12-24 09:46:36 +00:00
parent f944e31ce0
commit 7e6c91ef5d
18 changed files with 166 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
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/