Skip to content

Update monorepo-split-packages-update.yml #5

Update monorepo-split-packages-update.yml

Update monorepo-split-packages-update.yml #5

name: "Load Config"
on:
push:
branches:
- feature/workflow
jobs:
read-json:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Read and echo JSON variables
run: |
# Define the path to your JSON file
JSON_FILE_PATH="moox-workflow.json"
# Extract variables from the JSON file
VAR1=$(jq -r '.core_version' $JSON_FILE_PATH)
VAR2=$(jq -r '.packages' $JSON_FILE_PATH)
# Echo the variables
echo "Variable 1: $VAR1"
echo "Variable 2: $VAR2"