From ca17d4d845a3db35bcb583de741d00274b80958f Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Tue, 13 Aug 2024 06:55:22 +0200 Subject: [PATCH] [Tools] Speed chmods in CI workflows --- .github/workflows/02-phpstan.yml | 3 +-- .github/workflows/20-integration.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/02-phpstan.yml b/.github/workflows/02-phpstan.yml index 3b8f80bb5..a3939d421 100644 --- a/.github/workflows/02-phpstan.yml +++ b/.github/workflows/02-phpstan.yml @@ -161,8 +161,7 @@ jobs: MAGENTO_ROOT: ${{ env.magento-directory }} working-directory: ${{ env.magento-directory }} run: | - sudo find . -type f -exec chmod 644 {} \; - sudo find . -type d -exec chmod 755 {} \; + sudo chmod -R a=r,u+w,a+X . sudo find var pub/static pub/media app/etc generated/ -type f -exec chmod g+w {} \; sudo find var pub/static pub/media app/etc generated/ -type d -exec chmod g+ws {} \; sudo chown -R $USER:www-data . diff --git a/.github/workflows/20-integration.yml b/.github/workflows/20-integration.yml index 57b386fe1..1190a89f2 100644 --- a/.github/workflows/20-integration.yml +++ b/.github/workflows/20-integration.yml @@ -252,8 +252,7 @@ jobs: MAGENTO_ROOT: ${{ env.magento-directory }} working-directory: ${{ env.magento-directory }} run: | - sudo find . -type f -exec chmod 644 {} \; - sudo find . -type d -exec chmod 755 {} \; + sudo chmod -R a=r,u+w,a+X . sudo find var pub/static pub/media app/etc generated/ -type f -exec chmod g+w {} \; sudo find var pub/static pub/media app/etc generated/ -type d -exec chmod g+ws {} \; sudo chown -R runner:www-data .