Skip to content

Commit 3207f3e

Browse files
committed
ignore errors when copying PDFs
(there may be no PDFs)
1 parent 20aaa83 commit 3207f3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy-to-netlify.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ jobs:
6565

6666
- name: Copy pdfs to build output
6767
run: |
68-
sudo apt update
69-
sudo apt install -y rsync
7068
mkdir -p public/pdfs
71-
rsync -avm --filter="+ */" --filter="-! *.pdf" advocacy_docs/ public/pdfs/
72-
rsync -avm --filter="+ */" --filter="-! *.pdf" product_docs/docs/ public/pdfs/
69+
rsync -avm --filter="+ */" --filter="-! *.pdf" advocacy_docs/ public/pdfs/ || :
70+
rsync -avm --filter="+ */" --filter="-! *.pdf" product_docs/docs/ public/pdfs/ || :
7371
7472
- name: Deploy to Netlify
7573
id: netlify-deploy

0 commit comments

Comments
 (0)