|
47 | 47 |
|
48 | 48 | if [ ${#VALID_PLUGINS[@]} -eq 0 ]; then |
49 | 49 | echo "has_changes=false" >> $GITHUB_OUTPUT |
50 | | - echo "plugins=[\"__no_changes__\"]" >> $GITHUB_OUTPUT |
| 50 | + echo "plugins=[]" >> $GITHUB_OUTPUT |
51 | 51 | else |
52 | 52 | JSON=$(printf '%s\n' "${VALID_PLUGINS[@]}" | jq -R . | jq -s -c .) |
53 | 53 | echo "has_changes=true" >> $GITHUB_OUTPUT |
@@ -90,13 +90,13 @@ jobs: |
90 | 90 | - name: yq - portable yaml processor |
91 | 91 | uses: mikefarah/yq@v4.44.5 |
92 | 92 |
|
93 | | - - name: Install Homebrew and Dify CLI |
| 93 | + - name: Download Dify CLI |
| 94 | + env: |
| 95 | + GH_TOKEN: ${{ github.token }} |
94 | 96 | run: | |
95 | | - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
96 | | - echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH |
97 | | - echo "/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH |
98 | | - /home/linuxbrew/.linuxbrew/bin/brew tap langgenius/dify |
99 | | - /home/linuxbrew/.linuxbrew/bin/brew install dify |
| 97 | + gh release download -R langgenius/dify-plugin-daemon --pattern "dify-plugin-linux-amd64" --dir .scripts |
| 98 | + chmod +x .scripts/dify-plugin-linux-amd64 |
| 99 | + mv .scripts/dify-plugin-linux-amd64 .scripts/dify |
100 | 100 |
|
101 | 101 | - name: Export All Secrets to Environment |
102 | 102 | uses: oNaiPs/secrets-to-env-action@v1 |
@@ -170,7 +170,7 @@ jobs: |
170 | 170 | echo "EXTRACT_DIR=$EXTRACT_DIR" >> $GITHUB_ENV |
171 | 171 |
|
172 | 172 | echo "### Packaging plugin at: ${{ matrix.plugin_path }} ###" |
173 | | - dify plugin package ${{ matrix.plugin_path }} --output_path "$PKG_NAME" |
| 173 | + .scripts/dify plugin package ${{ matrix.plugin_path }} --output_path "$PKG_NAME" |
174 | 174 |
|
175 | 175 | echo "### Extracting package ###" |
176 | 176 | unzip -q "$PKG_NAME" -d "$EXTRACT_DIR" |
|
0 commit comments