From 3633e9c9968df50afbd1a71ea61712e1330c90e2 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Sun, 4 Feb 2024 20:19:50 +0900 Subject: Refactor org/img copy command in action.yml --- action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'action.yml') diff --git a/action.yml b/action.yml index 992f3ba..ac1e990 100644 --- a/action.yml +++ b/action.yml @@ -52,9 +52,12 @@ runs: working-directory: action run: ./create_notes.sh ../orgs shell: bash - - name: Copy org/img to ui/public/img + - name: Copy org/img to ui/public/ working-directory: action - run: cp -r ../orgs/img ../ui/public/img + run: | + if [ -d "../orgs/img" ]; then + cp -r ../orgs/img ../ui/public + fi shell: bash # build org-roam-ui -- cgit