Skip to content

Commit

Permalink
Merge pull request #3 from impresscms-dev/feat/added-path-argument
Browse files Browse the repository at this point in the history
Added path argument
  • Loading branch information
fiammybe authored Jun 29, 2022
2 parents 29af09c + b76d5eb commit 5526bf0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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
9 changes: 9 additions & 0 deletions 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 --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 @@ -127,6 +134,7 @@ runs:
chmod -R 0777 ./htdocs/uploads || true
chmod -R 0777 ./htdocs/images || true
shell: bash
working-directory: ${{ inputs.path }}

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

0 comments on commit 5526bf0

Please sign in to comment.