CI: Normalize file permissions (#29584)

* normalize file permissions

* comment

* add comment

* remove that

* shell

* should be on the top
This commit is contained in:
Justin Newberry
2023-08-23 23:50:51 -07:00
committed by GitHub
parent 4ea7833060
commit da7504e1e7
2 changed files with 10 additions and 2 deletions

View File

@@ -32,6 +32,13 @@ runs:
restore-keys: |
scons-${{ env.CACHE_COMMIT_DATE }}-
scons-
# as suggested here: https://github.com/moby/moby/issues/32816#issuecomment-910030001
- id: normalize-file-permissions
shell: bash
name: Normalize file permissions to ensure a consistent docker build cache
run: |
find . -type f -executable -not -perm 755 -exec chmod 755 {} \;
find . -type f -not -executable -not -perm 644 -exec chmod 644 {} \;
# build our docker image
- shell: bash
run: eval ${{ env.BUILD }}