From 8810098b314372d9d233e6aeac3ee2c20f131178 Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Mon, 8 Apr 2024 08:32:13 +0200 Subject: [PATCH] fix(action): use working directory to shorten script paths --- action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0ac6cc2..0ba3870 100644 --- a/action.yml +++ b/action.yml @@ -51,8 +51,10 @@ runs: docker pull -q ${{ inputs.image_configbaker }}:${{ inputs.image_tag }} - name: "Prepare environment variables, push them to GITHUB_ENV file" shell: bash + working-directory: ${{ github.action_path }}/scripts run: | - ${{ github.action_path }}/scripts/prepare.sh -p "${{ inputs.postgresql_version }}" -s "${{ inputs.solr_version }}" \ + prepare.sh \ + -p "${{ inputs.postgresql_version }}" -s "${{ inputs.solr_version }}" \ -d "${{ inputs.image_dataverse }}" -c "${{ inputs.image_configbaker }}" -t "${{ inputs.image_tag }}" \ -o dv/conf @@ -65,8 +67,9 @@ runs: done < <(printf '%s' "${{ inputs.jvm_options }}") - name: "Start Dataverse service in background" shell: bash + working-directory: ${{ github.action_path }}/scripts run: | - ${{ github.action_path }}/scripts/service.sh up -d -p apitest -f "${{ inputs.flavor }}" + service.sh up -d -p apitest -f "${{ inputs.flavor }}" # Bootstrap will wait up until accessible, so blocking here. - name: "Bootstrap Dataverse service" id: bootstrap