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" +}