use step output directly instead of fetching more than once (#1940)

Fix issue in finding ref
This commit is contained in:
Nick DeLuca 2024-06-12 12:45:29 -07:00 committed by GitHub
parent a79d852d1c
commit 828f17897e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,16 +56,10 @@ jobs:
id: kava-version id: kava-version
run: | run: |
echo "KAVA_VERSION=$(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)" >> $GITHUB_OUTPUT echo "KAVA_VERSION=$(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)" >> $GITHUB_OUTPUT
- name: checkout repo from master - name: checkout version of kava that will be deployed if this pr is merged
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: master ref: ${{ steps.kava-version.outputs.KAVA_VERSION }}
- name: checkout version of kava that will be deployed if this pr is merged
run: |
git pull -p
git checkout $KAVA_VERSION
env:
KAVA_VERSION: ${{ steps.kava-version.outputs.KAVA_VERSION }}
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with: