diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20d1d8c7..1b5d447b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,12 +6,6 @@ on: # Trigger the workflow on any pull request pull_request: workflow_dispatch: - inputs: - lsp_branch: - required: true - description: "lsp_branch" - default: "main" - type: string jobs: build: @@ -35,6 +29,19 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} + - name: "setup vars" + id: setupvars + run: | + echo "lsp_version=$(cat refact_lsp)" >> $GITHUB_OUTPUT + + - uses: convictional/trigger-workflow-and-wait@v1.6.1 + name: "Build refact-lsp" + with: + owner: smallcloudai + repo: refact-lsp + workflow_file_name: build.yml + github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + ref: ${{ steps.setupvars.outputs.lsp_version }} - name: Download artifact id: download-artifact @@ -43,9 +50,13 @@ jobs: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml repo: smallcloudai/refact-lsp - branch: ${{ github.event.inputs.lsp_branch }} + commit: ${{ steps.setupvars.outputs.lsp_version }} path: ./src/main/resources/bin + - name: "ls" + run: | + ls -la ./src/main/resources/bin && exit 1 + # Validate wrapper - name: Gradle Wrapper Validation uses: gradle/wrapper-validation-action@v1.0.6 diff --git a/refact_lsp b/refact_lsp new file mode 100644 index 00000000..95e94cdd --- /dev/null +++ b/refact_lsp @@ -0,0 +1 @@ +v0.0.1 \ No newline at end of file