From 6f2c5674c9896567104192243ee2681a8948d5be Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 23 Jul 2024 22:54:23 +0800 Subject: [PATCH] chore: github action build image --- .github/workflows/build-image.yml | 5 +++-- build.trigger | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 1bb5b815..648cb1ac 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -22,6 +22,7 @@ jobs: id: get_certd_version uses: actions/github-script@v6 with: + result-encoding: string script: | const fs = require('fs'); const path = require('path'); @@ -37,7 +38,7 @@ jobs: console.log("certd_version:",pkg.version); // 输出 JSON 对象,可以在后续步骤中使用 // echo "version=0.0.5" >> $GITHUB_OUTPUT - return {"version":"0.0.5"} + return "0.0.5" - name: Set up the working directory run: | @@ -63,4 +64,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs}} + registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}} diff --git a/build.trigger b/build.trigger index 00750edc..7ed6ff82 100644 --- a/build.trigger +++ b/build.trigger @@ -1 +1 @@ -3 +5