From 56e5c4f93f9cafeafcdc0d5a178051793847969b Mon Sep 17 00:00:00 2001 From: RealRichi3 Date: Fri, 24 May 2024 02:38:14 +0100 Subject: [PATCH] update build workflow --- .github/workflows/build_book.yml | 4 +--- config.json | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build_book.yml b/.github/workflows/build_book.yml index 3898aac6..5bfefc42 100644 --- a/.github/workflows/build_book.yml +++ b/.github/workflows/build_book.yml @@ -1,4 +1,3 @@ - name: Build Book with Babel Quarto on: @@ -32,7 +31,7 @@ jobs: - name: Extract config variables from config file id: read_config run: | - JSON_FILE="$CONFIG_PATH" + JSON_CONTENT=$(cat $CONFIG_PATH) LANGUAGES=$(echo "$JSON_CONTENT" | jq -r '.languages | join(",")') OUTPUT_DIR=$(echo "$JSON_CONTENT" | jq -r '.outputDirectory') @@ -126,4 +125,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} pull-request-number: ${{ steps.create_pr.outputs.pull_request_number }} - diff --git a/config.json b/config.json index b01e63e5..b9c58235 100644 --- a/config.json +++ b/config.json @@ -2,7 +2,6 @@ "includeLocalizedVersions": false, "outputDirectory": "docs", "sourceDirectory": "dist", - "translationsDirectory": "translations", "tutorialDirectory": "tutorials", "languages": ["en", "ar"], "translationsDirectory": "translations"