Skip to content

Commit

Permalink
simplification book.yml
Browse files Browse the repository at this point in the history
The "chmod -c" option isn’t really needed here since "-c" isn’t usually used for bulk changes and can be left out. If you don’t need detailed output about the changes, you can simplify the command.
  • Loading branch information
crStiv authored Nov 22, 2024
1 parent 5ea4f70 commit 83edc09
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ jobs:
- name: Archive artifact
shell: sh
run: |
chmod -c -R +rX "target/book" |
while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
chmod -R +rX "target/book"
tar \
--dereference --hard-dereference \
--directory "target/book" \
Expand Down Expand Up @@ -100,4 +97,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit 83edc09

Please sign in to comment.