From f8a3ec10728b34459e7c47778eb61ff9707d9579 Mon Sep 17 00:00:00 2001 From: elwafa Date: Sat, 18 Jan 2025 22:17:22 +0200 Subject: [PATCH] run specific command in ubuntu --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 977c240..4e694e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,10 +61,14 @@ jobs: - name: Install Composer (Unix) if: matrix.os != 'windows-latest' run: | - curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer + php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" + sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer + php -r "unlink('composer-setup.php');" sudo chmod +x /usr/local/bin/composer mkdir -p ~/.composer - sudo chown -R $USER:$USER ~/.composer + if [ "$RUNNER_OS" == "Linux" ]; then + sudo chown -R $USER:$USER ~/.composer + fi shell: bash - name: Get Composer Cache Directory