From ce75348c0e402756dbe9f3c0c917bd15fe13307d Mon Sep 17 00:00:00 2001 From: Gabriel Rufino Date: Sat, 7 Dec 2024 13:31:43 -0300 Subject: [PATCH] refactor --- action.yml | 7 +++---- entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 2790b82..b4030d2 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,8 @@ name: '@actalog/mongodump' description: GitHub Action for creating a binary export of a database's contents +branding: + icon: 'database' + color: 'green' inputs: connection-string: @@ -10,7 +13,3 @@ runs: image: 'Dockerfile' args: - ${{ inputs.connection-string }} - -branding: - icon: 'database' - color: 'green' diff --git a/entrypoint.sh b/entrypoint.sh index 9bb31b3..2335086 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh -l +apt update && apt upgrade -y + cd /action mongodump $1 mkdir $GITHUB_WORKSPACE/dump