From b7dc223d3b701586793a26a3baa5c6ad897a3839 Mon Sep 17 00:00:00 2001 From: "ADMSK\\AVROGAL1" Date: Fri, 19 Mar 2021 12:48:55 +0300 Subject: [PATCH] docs: updates on workflows Added information on documentation --- .github/workflows/json_fields.yml | 2 +- .github/workflows/sourceData.js | 3 +-- data/bible_proverbs.json | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/json_fields.yml b/.github/workflows/json_fields.yml index 71e59f35..675d59ab 100644 --- a/.github/workflows/json_fields.yml +++ b/.github/workflows/json_fields.yml @@ -36,7 +36,7 @@ jobs: uses: alexrogalskiy/github-action-json-fields@master id: process_json env: - target_file: "$TMPDIR/sourceData.json" + target_file: "${{ runner.temp }}/sourceData.json" target_path: ./data fields: 'text' with: diff --git a/.github/workflows/sourceData.js b/.github/workflows/sourceData.js index 1a5c78c9..1c353fe4 100644 --- a/.github/workflows/sourceData.js +++ b/.github/workflows/sourceData.js @@ -1,9 +1,8 @@ const fs = require('fs'); const path = require('path'); -const os = require('os'); const sourceFile = path.resolve(path.dirname(__filename), 'sourceData.json'); -const targetFile = path.resolve(os.tmpdir(), 'sourceData.json'); +const targetFile = path.resolve(process.env['RUNNER_TEMP'], 'sourceData.json'); function run(args) { const changeSet = args[0]; diff --git a/data/bible_proverbs.json b/data/bible_proverbs.json index d5d4af1a..f705ce55 100644 --- a/data/bible_proverbs.json +++ b/data/bible_proverbs.json @@ -8,17 +8,17 @@ { "text": "Where there is no vision, people perish.", "description": "", - "category": "biblical" + "category": "bible" }, { "text": "Blessed are the pure in heart: for they shall see God.", "description": "", - "category": "biblical" + "category": "bible" }, { "text": "Unto the pure all things are pure: but unto them that are defiled and unbelieving is nothing pure; but even their mind and conscience is defiled.", "description": "", - "category": "biblical" + "category": "bible" }, { "text": "All wickedness is but little to the wickedness of a woman.", @@ -316,4 +316,4 @@ "category": "bible" } ] -} \ No newline at end of file +}