From 0f499004df9b530a4a74056fa961d61590490f95 Mon Sep 17 00:00:00 2001 From: npty Date: Tue, 27 Aug 2024 17:13:51 +0700 Subject: [PATCH] chore: add version.json --- .github/workflows/test-sui.yaml | 9 ++++++--- sui/version.json | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 sui/version.json diff --git a/.github/workflows/test-sui.yaml b/.github/workflows/test-sui.yaml index c9ec7451..1364c12c 100644 --- a/.github/workflows/test-sui.yaml +++ b/.github/workflows/test-sui.yaml @@ -2,9 +2,6 @@ name: Test Sui on: pull_request -env: - SUI_VERSION: mainnet-v1.25.3 - jobs: test-sui: runs-on: blacksmith-2vcpu-ubuntu-2204 @@ -22,6 +19,12 @@ jobs: - name: Install run: npm ci + - name: Read SUI_VERSION from JSON + id: read-json + run: | + SUI_VERSION=$(jq -r '.SUI_VERSION' sui/version.json) + echo "SUI_VERSION=${SUI_VERSION}" >> $GITHUB_ENV + - name: Setup Sui CLI and install dependencies uses: ./.github/actions/setup-sui with: diff --git a/sui/version.json b/sui/version.json new file mode 100644 index 00000000..32a8c3ef --- /dev/null +++ b/sui/version.json @@ -0,0 +1,3 @@ +{ + "SUI_VERSION": "mainnet-v1.25.3" +}