Create check

This commit is contained in:
Muhammed Kalkan 2022-05-28 18:24:39 +03:00 committed by GitHub
parent e8ba2fd2e5
commit e2f45cd4a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
.github/workflows/check vendored Normal file
View File

@ -0,0 +1,24 @@
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/checkout@v3.0.2
with:
token: ${{ secrets.PAT }}
- name: Get the latest version of Lens
run: |
git tag | sort -V | tail -1 > 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 }}'