Skip to content

Commit 76c3335

Browse files
committed
Fix workflow php detection
1 parent 6075b2a commit 76c3335

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,17 @@ jobs:
4343
if: "${{ inputs.php-versions == 'auto-detect' }}"
4444
uses: "WyriHaximus/github-action-composer-php-versions-in-range@v1"
4545

46-
4746
- name: "Set PHP versions"
48-
with:
47+
env:
4948
inputVersions: "${{ inputs.php-versions }}"
5049
inputExtensions: "${{ inputs.php-extensions }}"
51-
detectedVersions: "${{ steps.supported-versions-detect.outputs.versions }}"
52-
detectedExtensions: "${{ join(fromJson(steps.supported-versions-detect.outputs.version), ',') }}"
53-
50+
detectedVersions: "${{ steps.supported-versions-detect.outputs.version }}"
51+
detectedExtensions: "${{ steps.supported-versions-detect.outputs.extensions }}"
5452
id: "supported-versions-matrix"
5553
shell: "bash"
5654
run: |
57-
echo "version=[[ $inputVersions != "auto-detect" ]] $detected-versions || $inputVersions " >> $GITHUB_ENV
58-
echo "extensions=[[ $inputVersions != "auto-detect" ]] $detectedExtensions || $inputExtensions " >> $GITHUB_ENV
55+
([[ $inputVersions == "auto-detect" ]] && echo "extensions=$detectedExtensions" || echo "extensions=$inputExtensions") >> $GITHUB_OUTPUT
56+
([[ $inputVersions == "auto-detect" ]] && echo "version=$detectedVersions" || echo "version=$inputVersions") >> $GITHUB_OUTPUT
5957
6058
tests:
6159
name: "Tests"

0 commit comments

Comments
 (0)