prepush hooks
This commit is contained in:
19
.gitea/actions/init-db/action.yml
Normal file
19
.gitea/actions/init-db/action.yml
Normal 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/
|
||||
|
||||
Reference in New Issue
Block a user