-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (29 loc) · 838 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Mongodump & Mongorestore action
description: GitHub action to run mongodump/mongorestore commands
inputs:
connection-string:
required: true
description: 'The connection string to the MongoDB database'
compress:
required: false
default: 'false'
description: 'Compress the output file'
additional-args:
required: false
description: 'Additional arguments to pass to mongodump/mongorestore command'
mongo-command:
required: false
default: 'mongodump'
description: 'The mongodump/mongorestore command to run'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.mongo-command }}
- ${{ inputs.connection-string }}
- ${{ inputs.additional-args }}
- ${{ inputs.compress }}
post-entrypoint: '/action/cleanup.sh'
branding:
icon: 'database'
color: 'green'