From 19ba6adf8aefe9f5683bbf213b94f4106e262d13 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 27 Apr 2025 02:04:44 +0200 Subject: [PATCH] Scripts: use relative path in upload action --- .forgejo/upload_hetzner/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/upload_hetzner/action.yml b/.forgejo/upload_hetzner/action.yml index 2ed61604a..9b1bdda88 100644 --- a/.forgejo/upload_hetzner/action.yml +++ b/.forgejo/upload_hetzner/action.yml @@ -15,7 +15,8 @@ runs: shell: bash run: | F=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16) - zip $F.zip -r ${{ inputs.src }}/* + cd ${{ inputs.src }} + zip $F.zip -r ./* scp $F.zip hetzner:${{ inputs.dst }}/$F.zip ssh hetzner "cd ${{ inputs.dst }} && unzip $F.zip && rm $F.zip"