Merge pull request #44 from jkroepke/latest-version-check
Fix latest version check
This commit is contained in:
commit
5b08a7c480
|
|
@ -15,9 +15,7 @@ jobs:
|
||||||
token: ${{ secrets.PAT }}
|
token: ${{ secrets.PAT }}
|
||||||
- name: Get the latest version of Lens
|
- name: Get the latest version of Lens
|
||||||
run: |
|
run: |
|
||||||
curl -s https://lens-binaries.s3.amazonaws.com/ide/latest-mac.yml |\
|
curl -s https://api.github.com/repos/lensapp/lens/releases/latest | jq -r '.tag_name[1:]' > version
|
||||||
grep -o "version:.*-latest" | grep -oP "(\d+(:?\.\d+)+)" |\
|
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue