Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print warnings about changed file permissions in bulk #38

Merged
merged 1 commit into from
Nov 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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