Skip to content

Commit 980ba3f

Browse files
committed
fix release
1 parent ca47404 commit 980ba3f

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/release.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,34 @@ on:
1818
type: string
1919
required: true
2020
jobs:
21+
# Set default values for inputs or use provided ones
22+
set-defaults:
23+
runs-on: ubuntu-latest
24+
outputs:
25+
lsp_branch: ${{ steps.set-defaults.outputs.lsp_branch }}
26+
chat_js_branch: ${{ steps.set-defaults.outputs.chat_js_branch }}
27+
steps:
28+
# Check out current repository to read refact_lsp file
29+
- name: Fetch Sources
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
34+
- id: set-defaults
35+
run: |
36+
echo "chat_js_branch=${{ github.event.inputs.chat_js_branch || 'main' }}" >> $GITHUB_OUTPUT
37+
if [ -n "${{ github.event.inputs.lsp_version }}" ]; then
38+
echo "lsp_version=${{ github.event.inputs.lsp_version }}" >> $GITHUB_OUTPUT
39+
else
40+
echo "lsp_version=$(cat refact_lsp)" >> $GITHUB_OUTPUT
41+
fi
2142
2243
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
2344
# Run verifyPlugin, IntelliJ Plugin Verifier, and test Gradle tasks
2445
# Build plugin and provide the artifact for the next workflow jobs
2546
release:
2647
name: Release
48+
needs: set-defaults
2749
runs-on: ubuntu-latest
2850
outputs:
2951
version: ${{ steps.properties.outputs.version }}
@@ -75,7 +97,7 @@ jobs:
7597
github_token: ${{secrets.GITHUB_TOKEN}}
7698
workflow: agent_gui_build.yml
7799
repo: smallcloudai/refact
78-
branch: ${{ inputs.chat_js_branch }}
100+
branch: ${{ needs.set-defaults.outputs.chat_js_branch }}
79101
path: ./chat_package
80102
name: lts-refact-chat-js-.*\.tgz
81103
name_is_regexp: true
@@ -95,7 +117,7 @@ jobs:
95117
repo: refact
96118
workflow_file_name: agent_engine_build.yml
97119
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
98-
ref: ${{ steps.setupvars.outputs.lsp_version }}
120+
ref: ${{ needs.set-defaults.outputs.lsp_branch }}
99121

100122
- name: Download artifact
101123
id: download-artifact

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = "com.smallcloud"
44
pluginName = Refact.ai
55
pluginRepositoryUrl = https://github.com/smallcloudai/refact-intellij
66
# SemVer format -> https://semver.org
7-
pluginVersion = 6.2.1
7+
pluginVersion = 6.2.2
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 241

0 commit comments

Comments
 (0)