Skip to content

Commit

Permalink
fix: fixed condition for restore command (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak authored Sep 12, 2024
1 parent a036a14 commit 1a05c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./
with:
# mongo-command: mongorestore
mongo-command: mongorestore
connection-string: mongodb://root:root@database:27017
compress: true
additional-args: '--tlsInsecure'
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "full command: $1 --uri=$2 $3"
if [ "$1" = "mongodump" ] && $1 --uri=$2 $3
then
echo "Dump created and stored in $GITHUB_WORKSPACE/dump"
else
else $1 --uri=$2 $3
echo "Not a mongodump command. Skipping moving dump"
fi

Expand Down

0 comments on commit 1a05c58

Please sign in to comment.