Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #38 from actions/change-file-permissions
Print warnings about changed file permissions in bulk
  • Loading branch information
Jess Bees authored and GitHub committed Nov 30, 2022
2 parents 1ca738b + 7d00048 commit 79d3b41
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions action.yml
Expand Up @@ -17,9 +17,8 @@ runs:
shell: sh
if: runner.os == 'Linux'
run: |
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
do
echo "::warning::Added read permission to $f"
chmod -c -R +r . | while read line; do
echo "::warning title=Changed permissions on a file::$line"
done
tar \
--dereference --hard-dereference \
Expand All @@ -36,9 +35,8 @@ runs:
shell: sh
if: runner.os == 'macOS'
run: |
for f in $(chmod -v -R +r .)
do
echo "::warning::Added read permission to $f"
chmod -v -R +r . | while read line; do
echo "::warning title=Changed permissions on a file::$line"
done
gtar \
--dereference --hard-dereference \
Expand Down

0 comments on commit 79d3b41

Please sign in to comment.