Skip to content

Check latest Lens version #1862

Check latest Lens version

Check latest Lens version #1862

Workflow file for this run

name: Check latest Lens version
on:
schedule:
- cron: '15 */6 * * *'
workflow_dispatch:
jobs:
version_check:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
token: ${{ secrets.PAT }}
- name: Get the latest version of Lens
run: |
curl -s https://api.github.com/repos/lensapp/lens/releases | jq -r '[.[] | select(.prerelease == false)][0] | .tag_name[1:]' > version
export "LENS_VERSION=$(cat version)"
echo "LENS_VERSION=${LENS_VERSION}"
if [[ -n "${LENS_VERSION}" ]]; then echo "LENS_VERSION=$(cat version)" >> $GITHUB_ENV; else exit 1; fi
- name: Add & Commit
uses: EndBug/[email protected]
with:
message: 'Version updated to: ${{ env.LENS_VERSION }}'