feat: automate upstream wechat version detection

This commit is contained in:
Nick007
2026-04-07 17:35:47 +08:00
parent 77edc4b33e
commit a5f832dd09
6 changed files with 206 additions and 3 deletions

32
.github/workflows/detect-upstream.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Detect Upstream Package Updates
on:
workflow_dispatch:
schedule:
- cron: '23 */6 * * *'
permissions:
contents: write
jobs:
detect-wechat-updates:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect upstream package changes
id: detect
run: ./.github/scripts/detect-upstream.sh
- name: Commit updated version state
if: steps.detect.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add versions/upstream.env
git commit -m "chore: update upstream package state"
git push