File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,7 @@ runs:
108
108
run : |
109
109
set -e
110
110
bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/cee5b9fa9fbc4c888e7a62bbb7b8eade18e3c56b/php-build.bash) phpunit
111
- echo "text<<EOF" >> $GITHUB_OUTPUT
112
- ${{ github.action_path }}/phpunit-action.bash >> $GITHUB_OUTPUT
113
- echo "EOF" >> $GITHUB_OUTPUT
114
- cat $GITHUB_OUTPUT
111
+ ${{ github.action_path }}/phpunit-action.bash || cat ${{ github.workspace }}/output.log
115
112
shell : bash
116
113
117
114
branding :
Original file line number Diff line number Diff line change 3
3
github_action_path=$( dirname " $0 " )
4
4
docker_tag=$( cat ./docker_tag)
5
5
6
- echo " output_log= Docker tag: $docker_tag "
6
+ echo " Docker tag: $docker_tag " >> output.log 2>&1
7
7
8
8
if [ -z " $ACTION_PHPUNIT_PATH " ]
9
9
then
13
13
phar_url=" ${phar_url} -${ACTION_VERSION} "
14
14
fi
15
15
phar_url=" ${phar_url} .phar"
16
- echo " output_log= Using phar url $phar_url "
16
+ echo " Using phar url $phar_url " >> output.log 2>&1
17
17
18
18
phar_path=" ${github_action_path} /phpunit.phar"
19
19
curl -H " User-agent: cURL (https://github.com/php-actions)" -L " $phar_url " > " $phar_path "
20
20
else
21
- echo " output_log= Using vendored phpunit"
21
+ echo " Using vendored phpunit" >> output.log 2>&1
22
22
phar_path=" ${GITHUB_WORKSPACE} /$ACTION_PHPUNIT_PATH "
23
23
fi
24
24
25
- echo " output_log= phar_path=$phar_path "
25
+ echo " phar_path=$phar_path " >> output.log 2>&1
26
26
chmod +x $phar_path
27
27
command_string=(" phpunit" )
28
28
96
96
command_string+=($ACTION_ARGS )
97
97
fi
98
98
99
- echo " output_log= Command: ${command_string[@]} "
99
+ echo " Command: ${command_string[@]} " >> output.log 2>&1
100
100
101
101
docker run --rm \
102
102
--volume " ${phar_path} " :/usr/local/bin/phpunit \
You can’t perform that action at this time.
0 commit comments