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

Commit

Permalink
new version checker
Browse files Browse the repository at this point in the history
  • Loading branch information
muink committed Aug 1, 2024
1 parent 0db0d2a commit 80ba716
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: EkkoG/openwrt-packages-version-checker@main
env:
COMMIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: zfl9/chinadns-ng
BRANCH: master
SOURCE_URL: https://github.com/zfl9/chinadns-ng/archive/refs/tags/{{version}}.tar.gz

- 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)

0 comments on commit 80ba716

Please sign in to comment.