mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-24 23:35:19 +00:00
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:
parent
5b0e7c8c58
commit
e1bd6ffa2f
10
.github/workflows/cd-seed-chain.yml
vendored
10
.github/workflows/cd-seed-chain.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user