Skip to content

Commit f1abd36

Browse files
authored
feat: Add PHP_EXTENSIONS input (#31)
1 parent d9407ba commit f1abd36

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/actions/composer/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ inputs:
1111
default: "composer"
1212
required: false
1313
type: string
14+
PHP_EXTENSIONS:
15+
description: PHP extensions
16+
default: ""
17+
required: false
18+
type: string
1419
COMPOSER_ARGS:
1520
description: Set of arguments passed to Composer.
1621
default: '--prefer-dist --no-scripts'
@@ -39,6 +44,7 @@ runs:
3944
with:
4045
php-version: ${{ inputs.PHP_VERSION }}
4146
tools: ${{ inputs.PHP_TOOLS }}
47+
extensions: ${{ inputs.PHP_EXTENSIONS }}
4248

4349
- name: Set Composer global config
4450
shell: bash

.github/workflows/composer-update.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
default: "8.1"
88
required: false
99
type: string
10+
PHP_EXTENSIONS:
11+
description: PHP extensions
12+
default: ""
13+
required: false
14+
type: string
1015
secrets:
1116
COMPOSER_AUTH_JSON:
1217
description: Authentication for privately hosted packages and repositories as a JSON formatted object.
@@ -49,6 +54,7 @@ jobs:
4954
uses: Humanoidfr/humanoid-github-workflows/.github/actions/composer@main
5055
with:
5156
PHP_VERSION: ${{ env.PHP_VERSION }}
57+
PHP_EXTENSIONS: ${{ inputs.PHP_EXTENSIONS }}
5258
COMPOSER_CONFIG: ${{ vars.COMPOSER_CONFIG_JSON }}
5359
INSTALL_AND_CACHE: false
5460

0 commit comments

Comments
 (0)