mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-03 23:37:27 +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
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          ref: master
 | 
					          ref: master
 | 
				
			||||||
      - name: checkout version of kava used by network
 | 
					      - name: get desired version of network
 | 
				
			||||||
 | 
					        id: kava-version
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          git pull -p
 | 
					          echo "KAVA_VERSION=$(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)" >> $GITHUB_OUTPUT
 | 
				
			||||||
          git checkout $(cat ${KAVA_VERSION_FILEPATH})
 | 
					 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          KAVA_VERSION_FILEPATH: ${{ inputs.kava_version_filepath }}
 | 
					          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
 | 
					      - name: Set up Go
 | 
				
			||||||
        uses: actions/setup-go@v4
 | 
					        uses: actions/setup-go@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user