Skip to content

Commit

Permalink
Update action.yml (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgrul authored Feb 23, 2024
1 parent d801c74 commit 2d8d13a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
description: 'The version of PHP to use.'
required: false
default: '8.3'
composer-token:
description: 'Token for Composer authentication.'
required: false
default: ''
composer-version:
description: 'The version of Composer to use.'
required: false
Expand Down Expand Up @@ -50,10 +54,13 @@ runs:
php-version: ${{ inputs.php-version }}
tools: composer:${{ inputs.composer-version }}
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.YOUR_TOKEN }}

- id: configure-composer
if: inputs.composer-token != ''
name: 'Configure Composer GitHub Token'
run: composer config --global --auth github-oauth.github.com ${{ github.token }}
run: composer config --global --auth github-oauth.github.com ${{ inputs.composer-token }}
shell: bash

- id: download-satis
Expand Down

0 comments on commit 2d8d13a

Please sign in to comment.