Skip to content

Commit f8dc164

Browse files
authored
Merge pull request #1 from volt-test/fix-CI
run specific command in ubuntu
2 parents 06ae0a2 + f8a3ec1 commit f8dc164

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ jobs:
6161
- name: Install Composer (Unix)
6262
if: matrix.os != 'windows-latest'
6363
run: |
64-
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
64+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
65+
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
66+
php -r "unlink('composer-setup.php');"
6567
sudo chmod +x /usr/local/bin/composer
6668
mkdir -p ~/.composer
67-
sudo chown -R $USER:$USER ~/.composer
69+
if [ "$RUNNER_OS" == "Linux" ]; then
70+
sudo chown -R $USER:$USER ~/.composer
71+
fi
6872
shell: bash
6973

7074
- name: Get Composer Cache Directory

0 commit comments

Comments
 (0)