From e1bd6ffa2f1ed5a96d056ec09389108f2180f820 Mon Sep 17 00:00:00 2001 From: Robert Pirtle Date: Fri, 14 Jun 2024 13:15:45 -0700 Subject: [PATCH] ci: prefer checkout action to manual pull (#1945) for internal testnet deployment, record the desired deployment version as an action variable that can be used by the checkout action instead of using manual pull & checkout commands --- .github/workflows/cd-seed-chain.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd-seed-chain.yml b/.github/workflows/cd-seed-chain.yml index 43cf6e87..a0f14ae4 100644 --- a/.github/workflows/cd-seed-chain.yml +++ b/.github/workflows/cd-seed-chain.yml @@ -35,12 +35,16 @@ jobs: uses: actions/checkout@v4 with: ref: master - - name: checkout version of kava used by network + - name: get desired version of network + id: kava-version run: | - git pull -p - git checkout $(cat ${KAVA_VERSION_FILEPATH}) + echo "KAVA_VERSION=$(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)" >> $GITHUB_OUTPUT env: KAVA_VERSION_FILEPATH: ${{ inputs.kava_version_filepath }} + - name: checkout version of kava used by network + uses: actions/checkout@v4 + with: + ref: ${{ steps.kava-version.outputs.KAVA_VERSION }} - name: Set up Go uses: actions/setup-go@v4 with: