diff --git a/action.yml b/action.yml index e7868f4..5063281 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,7 @@ name: Setup composer description: Install and cache composer dependencies author: Jamie Schouten + inputs: args: description: 'install arguments' @@ -13,13 +14,19 @@ inputs: packistry-token: description: 'Packistry deploy token' required: false - default: ${{ vars.PACKISTRY_DEPLOY_TOKEN }} + default: ${{ vars.PACKISTRY_DEPLOY_TOKEN }} + fetch-depth: + description: 'Number of commits to fetch during checkout' + required: false + default: '1' runs: using: "composite" steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: ${{ inputs.fetch-depth }} - name: Auth registry run: composer config --global bearer.packistry.qlic.nl ${{ inputs.packistry-token }} @@ -37,4 +44,4 @@ runs: ${{ runner.os }}-composer- - name: Install dependencies - run: composer install ${{ inputs.args }} + run: composer install ${{ inputs.args }} \ No newline at end of file