Skip to content

Commit 5526bf0

Browse files
authored
Merge pull request #3 from impresscms-dev/feat/added-path-argument
Added path argument
2 parents 29af09c + b76d5eb commit 5526bf0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ This action supports such arguments (used in `with` keyword):
7878
| admin_email | No | [email protected] | Administrator email |
7979
| language | No | english | Installation language |
8080
| app_key | No | | Application key. If not specified and your ImpressCMS version supports it, it will be generated automatically |
81+
| path | No | . | Path where ImpressCMS is located |
8182

8283
## Outputs
8384

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ inputs:
7070
description: "Application key. If not specified and your ImpressCMS version supports it, it will be generated automatically"
7171
default: ""
7272
required: false
73+
path:
74+
description: "Where ImpressCMS is located?"
75+
default: "."
76+
required: false
7377

7478
outputs:
7579
app_key:
@@ -90,6 +94,7 @@ runs:
9094
run: |
9195
bash ${{ github.action_path }}/bin/uses-composer.sh
9296
shell: bash
97+
working-directory: ${{ inputs.path }}
9398

9499
- name: Failing because of no composer support
95100
run: |
@@ -101,13 +106,15 @@ runs:
101106
- name: Install Composer dependencies (with dev)
102107
run: composer install --no-progress --prefer-dist --optimize-autoloader
103108
shell: bash
109+
working-directory: ${{ inputs.path }}
104110

105111
- name: Doing some nessary checks (part II)
106112
id: checks2
107113
run: |
108114
bash ${{ github.action_path }}/bin/app-key.sh "${{ inputs.app_key }}"
109115
bash ${{ github.action_path }}/bin/uses-phoenix.sh
110116
shell: bash
117+
working-directory: ${{ inputs.path }}
111118

112119
- name: Failing because of no phoenix support
113120
run: |
@@ -127,6 +134,7 @@ runs:
127134
chmod -R 0777 ./htdocs/uploads || true
128135
chmod -R 0777 ./htdocs/images || true
129136
shell: bash
137+
working-directory: ${{ inputs.path }}
130138

131139
- name: Installing ImpressCMS
132140
env:
@@ -149,3 +157,4 @@ runs:
149157
APP_KEY: ${{ steps.checks2.outputs.app_key }}
150158
run: ./bin/phoenix migrate -vvv
151159
shell: bash
160+
working-directory: ${{ inputs.path }}

0 commit comments

Comments
 (0)