From 4ecb0682306964e2a2f9d1325b66fb73908c5016 Mon Sep 17 00:00:00 2001 From: Anya Lin Date: Mon, 14 Oct 2024 11:15:58 +0800 Subject: [PATCH] feat: ci: version check --- .github/workflows/check.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..8da3bec3 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,27 @@ +name: mihomo version check +on: + workflow_dispatch: + schedule: + - cron: 0 16 * * 5 + push: + branches: + - master + +jobs: + check: + name: Check new mihomo version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: EkkoG/openwrt-packages-version-checker@main + env: + COMMIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: metacubex/mihomo + BRANCH: master + MAKEFILE: mihomo/Makefile + CREATE_PR: true + SOURCE_URL: https://github.com/metacubex/mihomo/archive/refs/tags/v{{version}}.tar.gz