File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update Winget Package
2+
3+ on :
4+ workflow_dispatch : # allows manual triggering
5+ schedule :
6+ - cron : ' 28 5 * * *' # Update every day at 5:28 UTC
7+
8+ jobs :
9+ update :
10+ name : Update Winget Package
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Install cargo binstall
15+ uses : cargo-bins/cargo-binstall@268643a6b5ea099f5718ee5cd3ff7dc89a5eb49b
16+
17+ - name : Install komac
18+ run : |
19+ cargo binstall [email protected] -y 20+
21+ - name : Find latest release
22+ id : find_latest_release
23+ uses : actions/github-script@v6
24+ with :
25+ script : |
26+ const { data: releases } = await github.rest.repos.listReleases({
27+ owner: context.repo.owner,
28+ repo: context.repo.repo,
29+ });
30+ console.log("Latest release:", releases[0].tag_name);
31+ return releases[0].tag_name;
32+
33+ - name : Update manifest
34+ env :
35+ VERSION : ${{ steps.find_latest_release.outputs.result }}
36+ run : |
37+ echo "Updating manifest..."
38+ komac update --version ${{ env.VERSION }} \
39+ --urls "https://github.com/ggml-org/llama.cpp/releases/download/${{ env.VERSION }}/llama-${{ env.VERSION }}-bin-win-vulkan-x64.zip" \
40+ --token ${{ secrets.WINGET_GITHUB_TOKEN }} \
41+ --dry-run \
42+ ggml.llamacpp
You can’t perform that action at this time.
0 commit comments