Skip to content

Commit

Permalink
update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRichi3 committed May 12, 2024
1 parent 78a3731 commit eefe183
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ jobs:
sudo apt-get install -y r-base r-base-core libssl-dev libcurl4-openssl-dev libxml2-dev
npm install -g npm@latest
- name: Extract config variables from config file
id: read_config
run: |
JSON_FILE="$CONFIG_PATH"
JSON_CONTENT=$(cat "$JSON_FILE")
LANGUAGES=$(echo "$JSON_CONTENT" | jq -r '.languages | join(",")')
OUTPUT_DIR=$(echo "$JSON_CONTENT" | jq -r '.outputDirectory')
SOURCE_DIR=$(echo "$JSON_CONTENT" | jq -r '.sourceDirectory')
TUTORIALS_DIR=$(echo "$JSON_CONTENT" | jq -r '.tutorialDirectory')
echo "LANGUAGES=$LANGUAGES" >> $GITHUB_ENV
echo "OUTPUT_DIR=$OUTPUT_DIR" >> $GITHUB_ENV
echo "SOURCE_DIR=$SOURCE_DIR" >> $GITHUB_ENV
echo "TUTORIALS_DIR=$TUTORIALS_DIR" >> $GITHUB_ENV
read_config:
runs-on: ubuntu-latest
needs: setup
Expand Down

0 comments on commit eefe183

Please sign in to comment.