From 42d760fb5198f9fd699fd7c6904159e2ac0a108d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 26 May 2020 20:24:48 +0200 Subject: [PATCH] Make the Composer self-update succeed by using sudo --- .github/workflows/continuous-integration.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d322bd937..41aea833f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -68,6 +68,11 @@ jobs: steps: - name: "Update to latest Composer snapshot" + if: "!startsWith(matrix.os, 'windows')" + run: "sudo composer self-update --snapshot" + + - name: "Update to latest Composer snapshot on Windows" + if: "startsWith(matrix.os, 'windows')" run: "composer self-update --snapshot" - name: "Checkout"