From 48542a789648a3a29f3ae3b7c81526fc40d3dd35 Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 1 Jul 2024 11:40:39 +0200 Subject: [PATCH] use native json instead of deprecated action --- .github/workflows/ubuntu.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 88fc65ceac..8566c889d8 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -133,13 +133,21 @@ jobs: ctest -C Release --output-on-failure # simtest - - name: Read simtest version + - name: Read simtest version old action id: simtest-version uses: notiz-dev/github-action-json-property@release with: path: 'simtest.json' prop_path: 'version' + - name: Read simtest version + - run: | + echo 'simtest<> $GITHUB_ENV + cat ./simtest.json >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + + echo '${{ fromJson(env.simtest).version }}' + - name: Init submodule run: | git submodule update --init --remote --recursive src/tests/resources/Antares_Simulator_Tests @@ -148,7 +156,7 @@ jobs: if: ${{ env.RUN_SIMPLE_TESTS == 'true' }} uses: ./.github/workflows/run-tests with: - simtest-tag: ${{steps.simtest-version.outputs.prop}} + simtest-tag: ${{ fromJson(env.PACKAGE_JSON).version }} batch-name: valid-named-mps os: ${{ env.os }} variant: "named-mps"