From 4fa0cb74c51c40a2042f97a2bedbf2c3fa613c3e Mon Sep 17 00:00:00 2001 From: Alexander Zautke Date: Tue, 31 Dec 2024 11:15:27 +0300 Subject: [PATCH] Update update-javavalidator.yml --- .github/workflows/update-javavalidator.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-javavalidator.yml b/.github/workflows/update-javavalidator.yml index 93ba280..1f400b6 100644 --- a/.github/workflows/update-javavalidator.yml +++ b/.github/workflows/update-javavalidator.yml @@ -16,12 +16,13 @@ jobs: steps: - uses: actions/checkout@v4 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! + - name: Install yq + run: | + sudo apt-get install -y jq + wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq + chmod +x /usr/bin/yq - # Runs a set of commands using the runners shell - - name: Run a multi-line script + - name: Extract with default version of Java validator run: | - echo Add other actions to build, - echo test, and deploy your project. + JAVA_VALIDATOR_VERSION=$(yq '.inputs.JAVA_VALIDATOR_VERSION.default' .github/workflows/firely_config.yaml) + echo "JAVA_VALIDATOR_VERSION: $JAVA_VALIDATOR_VERSION"