Skip to content

Xteve Update Checker #122

Xteve Update Checker

Xteve Update Checker #122

# Description: xteve version update checker
name: Xteve Update Checker
on:
workflow_dispatch:
schedule:
- cron: 8 18 * * *
jobs:
Xteve_Check:
runs-on: ubuntu-latest
steps:
- name: Get latest version of xteve
id: getVersion
run: |
VERSION=$(wget -qO- -t1 -T2 https://api.github.com/repos/xteve-project/xTeVe/releases/latest | grep '"name"' | awk -F "\"" '{printf $4}')
echo "curentVersion=$VERSION" >> $GITHUB_OUTPUT
- name: Compare xteve version
id: cacheVersion
uses: actions/cache@v4
with:
path: .curentVersion
key: ${{ steps.getVersion.outputs.curentVersion }}
- name: Save New Curent Version
if: steps.cacheVersion.outputs.cache-hit != 'true'
run: |
echo ${{ steps.getVersion.outputs.curentVersion }} | tee .curentVersion
- name: Trigger build
if: steps.cacheVersion.outputs.cache-hit != 'true'
uses: peter-evans/repository-dispatch@v3
with:
event-type: Xteve Image Update
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
retain_days: 0
keep_minimum_runs: 2