From d93d31dd75fb2f7627339f319ede309dd786aac7 Mon Sep 17 00:00:00 2001 From: Memory <1448208262@qq.com> Date: Sun, 30 Jun 2024 02:18:35 +0800 Subject: [PATCH] fix: release.yml --- .github/workflows/release.yml | 7 ++----- .../java/cn/memoryzy/json/actions/child/RemoveAction.java | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b983da9..49a789a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: echo "name=$NAME" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "pluginSignedName=$NAME-$VERSION-signed.zip" >> $GITHUB_OUTPUT echo "changelog<> $GITHUB_OUTPUT echo "$CHANGELOG" >> $GITHUB_OUTPUT @@ -92,11 +93,7 @@ jobs: - name: Upload Release Asset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - NAME="${{ steps.properties.outputs.name }}" - VERSION="${{ steps.properties.outputs.version }}" - PLUGIN_SIGNED_ARTIFACT_NAME="$NAME-$VERSION-signed.zip" - gh release upload ${{ github.event.release.tag_name }} ./build/distributions/$PLUGIN_SIGNED_ARTIFACT_NAME + run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/${{ steps.properties.outputs.pluginSignedName }} # Create a pull request - name: Create Pull Request diff --git a/src/main/java/cn/memoryzy/json/actions/child/RemoveAction.java b/src/main/java/cn/memoryzy/json/actions/child/RemoveAction.java index 39ce99d..62a1a4c 100644 --- a/src/main/java/cn/memoryzy/json/actions/child/RemoveAction.java +++ b/src/main/java/cn/memoryzy/json/actions/child/RemoveAction.java @@ -29,6 +29,7 @@ public void actionPerformed(@NotNull AnActionEvent anActionEvent) { } } ((DefaultTreeModel) tree.getModel()).reload(); + } } } \ No newline at end of file