Update check.yml
This commit is contained in:
		
							parent
							
								
									729dd632d3
								
							
						
					
					
						commit
						bf6a5e900d
					
				|  | @ -15,12 +15,12 @@ jobs: | ||||||
|           token: ${{ secrets.PAT }} |           token: ${{ secrets.PAT }} | ||||||
|       - name: Get the latest version of Lens |       - name: Get the latest version of Lens | ||||||
|         run: | |         run: | | ||||||
|           git clone https://github.com/lensapp/lens.git |           curl -s https://lens-binaries.s3.amazonaws.com/ide/latest-mac.yml |\ | ||||||
|           cd lens |             grep -o "version:.*-latest" | grep -oP "(\d+(:?\.\d+)+)" |\ | ||||||
|           git tag --sort=committerdate | grep -E '[0-9]' | tail -1 | cut -b 2-7 | head -n 1 > version |             head -n 1 > version | ||||||
|           export LENS_VERSION=$(cat version) |           export LENS_VERSION=$(cat version) | ||||||
|           echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV |           echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV | ||||||
|       - name: Add & Commit |       - name: Add & Commit | ||||||
|         uses: stefanzweifel/git-auto-commit-action@v4 |         uses: EndBug/add-and-commit@v9.0.0 | ||||||
|         with: |         with: | ||||||
|           commit_message: 'Version updated to: ${{ env.LENS_VERSION }}' |           message: 'Version updated to: ${{ env.LENS_VERSION }}' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue