Skip to content

Commit

Permalink
Merge pull request #3344 from Smile-SA/feat-ci-speed-up-chmods
Browse files Browse the repository at this point in the history
[Tools] Speed chmods in CI workflows
  • Loading branch information
rbayet authored Aug 13, 2024
2 parents 86d8f87 + ca17d4d commit a2a3ec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/02-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/20-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit a2a3ec0

Please sign in to comment.