File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments