Skip to content

Commit

Permalink
Added path argument
Browse files Browse the repository at this point in the history
  • Loading branch information
MekDrop committed Jun 26, 2022
1 parent fa03da8 commit 79f2d3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ This action supports such arguments (used in `with` keyword):
| admin_email | No | [email protected] | Administrator email |
| language | No | english | Installation language |
| app_key | No | | Application key. If not specified and your ImpressCMS version supports it, it will be generated automatically |
| path | No | . | Path where ImpressCMS is located |

## Outputs

Expand Down
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ inputs:
description: "Application key. If not specified and your ImpressCMS version supports it, it will be generated automatically"
default: ""
required: false
path:
description: "Where ImpressCMS is located?"
default: "."
required: false

outputs:
app_key:
Expand All @@ -90,6 +94,7 @@ runs:
run: |
bash ${{ github.action_path }}/bin/uses-composer.sh
shell: bash
working-directory: ${{ inputs.path }}

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

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

- name: Failing because of no phoenix support
run: |
Expand All @@ -119,6 +126,7 @@ runs:
- name: Chmoding folders...
run: chmod -R 0777 ./storage ./modules ./themes ./uploads
shell: bash
working-directory: ${{ inputs.path }}

- name: Installing ImpressCMS
env:
Expand All @@ -140,4 +148,5 @@ runs:
INSTALL_LANGUAGE: ${{ inputs.language }}
APP_KEY: ${{ steps.checks2.outputs.app_key }}
run: ./bin/phoenix migrate -vvv
shell: bash
shell: bash
working-directory: ${{ inputs.path }}

0 comments on commit 79f2d3f

Please sign in to comment.