Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

New version check

New version check #47

Workflow file for this run

name: New version check
on:
workflow_dispatch:
schedule:
- cron: 0 16 * * 5
push:
branches:
- master
jobs:
check:
name: Check new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check new version
shell: bash
run: |
./update.sh
- name: Commit and push
run: |
git config --local user.name "GitHub Action"
git config --local user.email "[email protected]"
git add Makefile
git diff-index --cached --quiet HEAD Makefile \
|| (git commit -m "update to $(sed -En 's|^\s*PKG_VERSION\s*:=(.*)|\1|p' Makefile)" && git push)