From 7f4814e30b7756bb69b2859b532a383fc411f59b Mon Sep 17 00:00:00 2001 From: Hugefiver Date: Fri, 27 Dec 2024 16:36:17 +0800 Subject: [PATCH 1/2] fix github action --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f6311c6..5b2cb7e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: with: image: ${{ steps.build-image.outputs.image }} tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ secrets.HARBOR_URL }} - username: ${{ secrets.HARBOR_USERNAME }} - password: ${{ secrets.HARBOR_PASSWD }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} retry: 1000 From ae9e68aeea4c008e179202c5a311bf3e9fde48be Mon Sep 17 00:00:00 2001 From: Hugefiver Date: Fri, 27 Dec 2024 16:54:10 +0800 Subject: [PATCH 2/2] fix(sticker): nocache not work currently --- base/sticker.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/sticker.go b/base/sticker.go index 732da14f..c3d7dec7 100644 --- a/base/sticker.go +++ b/base/sticker.go @@ -823,7 +823,11 @@ func parseOpts(text string) (map[string]string, error) { if slices.Contains([]string{"", "webp", "jpg", "jpeg", "png", "apng", "mp4", "gif", "webm"}, f) { ret[k] = v } + case "!pack", "!p", "nopack", "pack!", "p!": + v = "false" + fallthrough case "pack", "p": + k = "pack" if v == "false" { ret[k] = "false" } else { @@ -839,6 +843,9 @@ func parseOpts(text string) (map[string]string, error) { if slices.Contains([]string{"", "webp", "jpg", "jpeg", "png", "gif"}, f) { ret[k] = v } + // other available params without check + case "nocache": + ret[k] = v } } return ret, nil