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
This commit is contained in:
Robert Pirtle 2024-06-14 13:15:45 -07:00 committed by GitHub
parent 5b0e7c8c58
commit e1bd6ffa2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: