Files
OpenLens/.github/workflows/check.yml
T
2022-05-28 21:56:04 +03:00

27 lines
743 B
YAML

name: Check latest Lens version
on:
schedule:
- cron: '5 * * * *'
workflow_dispatch:
jobs:
version_check:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
with:
token: ${{ secrets.PAT }}
- name: Get the latest version of Lens
run: |
git clone https://github.com/lensapp/lens.git
cd lens
git tag --sort=committerdate | grep -E '[0-9]' | tail -1 | cut -b 2-7 > version
export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
- name: Add & Commit
uses: EndBug/add-and-commit@v9.0.0
with:
message: 'Version updated to: ${{ env.LENS_VERSION }}'