Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Send a workflow warning when changing file permissions
  • Loading branch information
Jess Bees committed Nov 8, 2022
1 parent 3cb2c0f commit 61a978d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions action.yml
Expand Up @@ -17,7 +17,10 @@ runs:
shell: sh
if: runner.os == 'Linux'
run: |
chmod -R +r .
for f in $(chmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
do
echo "::warning::Added read permission to $f"
done
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
Expand All @@ -33,7 +36,10 @@ runs:
shell: sh
if: runner.os == 'macOS'
run: |
chmod -R +r .
for f in $(gchmod -c -R +r . | awk '{print substr($3, 2, length($3)-2)}')
do
echo "::warning::Added read permission to $f"
done
gtar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
Expand Down

0 comments on commit 61a978d

Please sign in to comment.