Add directory #4

Closed
kbaas wants to merge 3 commits from feature/directory into main
2 changed files with 12 additions and 0 deletions
Showing only changes of commit c2cece21dc - Show all commits

View File

@@ -2,10 +2,10 @@ name: Setup composer
description: Install and cache composer dependencies description: Install and cache composer dependencies
author: Jamie Schouten author: Jamie Schouten
inputs: inputs:
directory: working-directory:
description: 'directory to run composer in' description: 'directory to run composer in'
required: false required: false
default: '.' default: './'
args: args:
description: 'install arguments' description: 'install arguments'
required: false required: false
@@ -30,11 +30,13 @@ runs:
- name: Auth registry - name: Auth registry
run: composer config --global bearer.packistry.qlic.nl ${{ inputs.packistry-token }} run: composer config --global bearer.packistry.qlic.nl ${{ inputs.packistry-token }}
working-directory: ${{ inputs.working-directory }}
- name: Get Composer Cache Directory - name: Get Composer Cache Directory
id: composer-cache id: composer-cache
run: | run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
working-directory: ${{ inputs.working-directory }}
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
@@ -42,6 +44,8 @@ runs:
key: ${{ runner.os }}-composer-${{ hashFiles(inputs.file) }} key: ${{ runner.os }}-composer-${{ hashFiles(inputs.file) }}
restore-keys: | restore-keys: |
${{ runner.os }}-composer- ${{ runner.os }}-composer-
working-directory: ${{ inputs.working-directory }}
- name: Install dependencies - name: Install dependencies
run: composer install ${{ inputs.args }} run: composer install ${{ inputs.args }}
working-directory: ${{ inputs.working-directory }}