Skip to content

Commit

Permalink
fix: more testing
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Williams <m@technovangelist.com>
  • Loading branch information
technovangelist committed Oct 26, 2023
1 parent 9101ed7 commit 22dbfc3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,30 @@ on:
push:
branches:
- main

jobs:
changelog:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.changelog.outputs.tag }}
skipped: ${{ steps.changelog.outputs.skipped }}
output: ${{steps.changelog.outputs.clean_changelog}}
steps:
- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v4.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

compile:
strategy:
matrix:
target: [{target: x86_64-unknown-linux-gnu, file: linux/ollamamodelupdate}, {target: x86_64-pc-windows-msvc, file: windows/ollamamodelupdate.exe}, {target: x86_64-apple-darwin, file: macos-x86/ollamamodelupdate}, {target: aarch64-apple-darwin, file: macos-arm64/ollamamodelupdate}]
runs-on: ubuntu-latest

needs: changelog
steps:
- uses: actions/checkout@v4

- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v4.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- uses: denoland/setup-deno@v1
with:
Expand All @@ -40,11 +48,11 @@ jobs:
# macos-arm64/ollamamodelupdate
- name: Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
if: ${{ needs.changelog.outputs.skipped == 'false' }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ needs.changelog.outputs.tag }}
release_name: ${{ needs.changelog.outputs.tag }}
body: ${{ needs.changelog.outputs.output }}
files: |
linux/ollamamodelupdate
windows/ollamamodelupdate.exe
Expand Down
2 changes: 1 addition & 1 deletion update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ for await (const model of localModels) {
const localdigest = model.digest
let [repo, tag] = model.name.split(":")
if (!repo.includes("/")) {
repo = `library/${repo}`
repo = ` library/${repo}`
}
const remoteModelInfo = await fetch(`https://ollama.ai/v2/${repo}/manifests/${tag}`, {
headers: {
Expand Down

0 comments on commit 22dbfc3

Please sign in to comment.