add packistry as auth

This commit is contained in:
Jamie Schouten 2025-01-28 16:01:03 +01:00
parent 0f08cb1951
commit 609b27a899

View File

@ -10,6 +10,10 @@ inputs:
description: 'file to hash for cache key'
required: false
default: '**/composer.lock'
token:
description: 'Packistry deploy token'
required: false
default: ${{ vars.PACKISTRY_DEPLOY_TOKEN }}
runs:
using: "composite"
@ -18,7 +22,7 @@ runs:
uses: actions/checkout@v4
- name: Auth registry
run: composer config --global http-basic.git.qlic.nl ${{ vars.REGISTRY_USERNAME }} ${{ vars.REGISTRY_PASSWORD }}
run: composer config --global bearer.packistry.qlic.nl ${{ inputs.token }}
- name: Get Composer Cache Directory
id: composer-cache