Skip to content

Commit

Permalink
fix(action): use working directory to shorten script paths
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Apr 8, 2024
1 parent 36084aa commit 8810098
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8810098

Please sign in to comment.