From 9fab108348ca688a040c1e8296fb10d574b28757 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Wed, 24 Jan 2024 23:08:25 +0900 Subject: Fix script parameter interpolation in action.yml --- action.yml | 2 +- generate_json.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 688fc48..5901fb5 100644 --- a/action.yml +++ b/action.yml @@ -45,7 +45,7 @@ runs: shell: bash - name: Generate graphdata.json working-directory: action - run: npm run generate --script_params=../orgs/{{ inputs.org-roam-db-file }} + run: npm run generate --script_params=../orgs/${{ inputs.org-roam-db-file }} shell: bash - name: Create Notes working-directory: action diff --git a/generate_json.js b/generate_json.js index be51cf0..d1e2701 100644 --- a/generate_json.js +++ b/generate_json.js @@ -1,3 +1,4 @@ +console.log("db file", process.argv[2]); const sqlite3 = require('sqlite3').verbose(); const dbFile = process.argv[2]; const db = new sqlite3.Database(dbFile); -- cgit