Skip to content

Commit 3bdf336

Browse files
author
Greg Bowler
committed
Download phar from Github
1 parent dace196 commit 3bdf336

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

phpstan-action.bash

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ github_action_path=$(dirname "$0")
44
docker_tag=$(cat ./docker_tag)
55
echo "Docker tag: $docker_tag" >> output.log 2>&1
66

7-
# TODO: Download phar from Github
8-
phar_url="https://getrelease.download?repo=phpstan&version=$ACTION_VERSION"
7+
phar_url="https://www.getrelease.download/phpstan/phpstan/$ACTION_VERSION/phar"
98
curl --silent -H "User-agent: cURL (https://github.com/php-actions)" -L "$phar_url" > "${github_action_path}/phpstan.phar"
10-
chmod +x "${github_action_path}/phpunit.phar"
9+
chmod +x "${github_action_path}/phpstan.phar"
1110

1211
command_string=("phpstan")
1312

0 commit comments

Comments
 (0)