Skip to content

Commit

Permalink
fix cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Feb 28, 2025
1 parent 3ea088c commit 0f4248a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ on:
default: ''
force_build_lsp:
type: boolean
description: Use last version of lsp from repo or force build new(for tests only)
description: force build new lsp(for tests only)
default: true
required: true

jobs:
build:
Expand All @@ -28,8 +29,16 @@ jobs:
outputs:
version: ${{ steps.properties.outputs.version }}
changelog: ${{ steps.properties.outputs.changelog }}
env:
CHAT_JS_BRANCH: ${{ inputs.chat_js_branch || 'main' }}
# Convert the boolean input to string 'true' or 'false' explicitly
FORCE_BUILD_LSP: ${{ github.event_name == 'workflow_dispatch' && inputs.force_build_lsp || true }}
LSP_VERSION: ${{ inputs.lsp_version || '' }}
steps:

- name: Debug force_build_lsp
run: echo "force_build_lsp is set to ${{ env.FORCE_BUILD_LSP }}"

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
run: |
Expand All @@ -47,8 +56,8 @@ jobs:
- name: "setup vars"
id: setupvars
run: |
if [ -n "${{ inputs.lsp_version }}" ]; then
echo "lsp_version=${{ inputs.lsp_version }}" >> $GITHUB_OUTPUT
if [ -n "${{ env.LSP_VERSION }}" ]; then
echo "lsp_version=${{ env.LSP_VERSION }}" >> $GITHUB_OUTPUT
else
echo "lsp_version=$(cat refact_lsp)" >> $GITHUB_OUTPUT
fi
Expand All @@ -60,7 +69,7 @@ jobs:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: agent_gui_build.yml
repo: smallcloudai/refact
branch: ${{ inputs.chat_js_branch }}
branch: ${{ env.CHAT_JS_BRANCH }}
path: ./chat_package
name: lts-refact-chat-js-.*\.tgz
name_is_regexp: true
Expand All @@ -75,7 +84,7 @@ jobs:
- uses: convictional/trigger-workflow-and-wait@v1.6.5
name: "Build refact-lsp"
if: ${{ inputs.force_build_lsp }}
if: ${{ env.FORCE_BUILD_LSP == true }}
with:
owner: smallcloudai
repo: refact
Expand Down Expand Up @@ -145,7 +154,6 @@ jobs:
name: pluginVerifier-result
path: ${{ github.workspace }}/build/reports/pluginVerifier


- name: Prepare Plugin Artifact
id: artifact
shell: bash
Expand All @@ -161,4 +169,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*
path: ./build/distributions/content/*/*
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
description: "Branch name of chat-js"
default: "main"
type: string
required: true
jobs:

# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
Expand Down

0 comments on commit 0f4248a

Please sign in to comment.