diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 5b799f43..06663d45 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -6,6 +6,9 @@ on: tags: description: "Version tags" +env: + VERSION: 0.9.0 + jobs: build: strategy: @@ -104,11 +107,15 @@ jobs: run: | make tools + - name: Get Version + run: | + echo VERSION=$(cat share/const.go |grep 'const VERSION' | awk '{print $4}' | sed "s/\"//g") >> $GITHUB_ENV + - name: Make Artifacts Linux run: | make artifacts-linux - mv dist/release/yao-0.10.3-dev-linux-arm64 dist/release/yao-0.10.3-unstable-linux-arm64 - mv dist/release/yao-0.10.3-dev-linux-amd64 dist/release/yao-0.10.3-unstable-linux-amd64 + mv dist/release/yao-$VERSION-dev-linux-arm64 dist/release/yao-$VERSION-unstable-linux-arm64 + mv dist/release/yao-$VERSION-dev-linux-amd64 dist/release/yao-$VERSION-unstable-linux-amd64 - name: Configure COS For Silicon Valley env: diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index aad45bc7..adc03dee 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -5,6 +5,10 @@ on: inputs: tags: description: "Version tags" + +env: + VERSION: 0.9.0 + jobs: build: strategy: @@ -100,11 +104,15 @@ jobs: run: | make tools + - name: Get Version + run: | + echo VERSION=$(cat share/const.go |grep 'const VERSION' | awk '{print $4}' | sed "s/\"//g") >> $GITHUB_ENV + - name: Make Artifacts MacOS run: | make artifacts-macos - mv dist/release/yao-0.10.3-dev-darwin-arm64 dist/release/yao-0.10.3-unstable-darwin-arm64 - mv dist/release/yao-0.10.3-dev-darwin-amd64 dist/release/yao-0.10.3-unstable-darwin-amd64 + mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64 + mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64 - name: Configure COS For Silicon Valley env: diff --git a/widget/driver/connector.go b/widget/driver/connector.go index 1c02e42d..0592c57a 100644 --- a/widget/driver/connector.go +++ b/widget/driver/connector.go @@ -169,7 +169,7 @@ func (app *Connector) init() error { fields := []string{"id", "file", "source", "created_at", "updated_at", "expired_at"} for _, field := range fields { if !tab.HasColumn(field) { - return fmt.Errorf("%s is required", field) + return fmt.Errorf("%s table %s field %s is required", app.Widget, app.Table, field) } }