Skip to content

Commit 73a9635

Browse files
Adds the action path as a parameter to script.
1 parent ae6d7db commit 73a9635

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/test-deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919

2020
- name: "Run hello-world"
2121
run: curl -v localhost:8082/hello-world
22-
23-
- name: Log docker-compose
24-
run: cat ${{ github.workspace }}/docker-compose.yml
2522

2623
- name: Log structr.conf contents
2724
run: cat ${{ github.workspace }}/structr.conf

action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ runs:
4242
STRUCTR_WEBAPP_PATH: ${{ inputs.structr-webapp-path }}
4343
STRUCTR_LICENSE: ${{ inputs.structr-license }}
4444
STRUCTR_CONF_FILE: ${{ inputs.structr-conf-file }}
45-
run: >-
46-
cd ${{ github.action_path }} &&
47-
./setup_environment.sh &&
45+
run: >-
46+
./setup_environment.sh ${{ github.action_path }} &&
4847
docker-compose up -d
4948
5049
shell: bash

setup_environment.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ACTION_PATH=$1
2+
cd $ACTION_PATH
3+
14
echo "Replacing variables for Structr and Neo4j docker configuration"
25
echo Neo4j version: $NEO4j_VERSION
36
echo Structr version: $STRUCTR_VERSION

0 commit comments

Comments
 (0)