From 47e5381d86feee24e4566174e0793ddbd50e09eb Mon Sep 17 00:00:00 2001 From: ikoamu Date: Wed, 24 Jan 2024 22:06:51 +0900 Subject: Update create_notes.sh to copy files from a specified org directory --- action.yml | 2 +- create_notes.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 4592a76..689df93 100644 --- a/action.yml +++ b/action.yml @@ -59,7 +59,7 @@ runs: - name: Create Notes working-directory: action - run: ./create_notes.sh + run: ./create_notes.sh ../orgs shell: bash - name: print files diff --git a/create_notes.sh b/create_notes.sh index 05c727a..8e51052 100755 --- a/create_notes.sh +++ b/create_notes.sh @@ -1,5 +1,7 @@ #!/bin/bash +orgPath=$1 + mkdir -p notes cat graphdata.json | @@ -7,5 +9,5 @@ jq -c '.data.nodes[]' | while read -r nodes; do id=$(echo "${nodes}" | jq -r '.id') file=$(echo "${nodes}" | jq -r '.file') - cp -p "${file}" "notes/${id}" + cp -p "${orgPath}/${file}" "notes/${id}" done \ No newline at end of file -- cgit