File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ inputs:
25
25
pintVersion :
26
26
description : " laravel/pint composer version to install a specific version."
27
27
required : false
28
+
29
+ useComposer :
30
+ description : " Use Laravel Pint version from project composer lock file. Lock file must be preset to use this flag."
31
+ required : false
28
32
runs :
29
33
using : ' docker'
30
34
image : ' Dockerfile'
35
39
- ${{ inputs.preset }}
36
40
- ${{ inputs.only-dirty }}
37
41
- ${{ inputs.pint-version }}
42
+ - ${{ inputs.use-composer }}
38
43
branding :
39
44
icon : ' eye'
40
45
color : ' gray-dark'
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ pint_install_command=("composer global require laravel/pint:PINT_VERSION --no-pr
6
6
if [[ " ${INPUT_PINTVERSION} " ]]
7
7
then
8
8
pint_install_command=" ${pint_install_command/ PINT_VERSION/ ${INPUT_PINTVERSION} } "
9
+ elif [[ " ${INPUT_USECOMPOSER} " ]]
10
+ then
11
+ pint_install_command=" ${pint_install_command/ PINT_VERSION/ $(composer show --locked | grep ' laravel/pint' | awk ' {print $2}' )} "
9
12
else
10
13
pint_install_command=" ${pint_install_command/: PINT_VERSION/ } "
11
14
fi
You can’t perform that action at this time.
0 commit comments