From d1f56fe98db62b3a7d6c66de4f2b0e4405eac115 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 05:39:38 +0000 Subject: [PATCH] feat: workdir variable --- action.yaml | 3 +++ entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/action.yaml b/action.yaml index 763ad98..8493f5d 100644 --- a/action.yaml +++ b/action.yaml @@ -7,6 +7,9 @@ inputs: default: ${{ gitea.repository_owner }} registry_password: description: Registry password + workdir: + description: Working directory where to the action from + default: . runs: using: composite diff --git a/entrypoint.sh b/entrypoint.sh index 1d3fc3e..30cbb7c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,8 @@ #!/bin/bash -e # shellcheck disable=SC1091 +cd "$INPUT_WORKDIR" + set -a . ./.env set +a