Skip to content

Commit

Permalink
cicl
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Dec 29, 2023
1 parent 8e128ac commit 59febb5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
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
Expand All @@ -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/[email protected]
Expand Down
1 change: 1 addition & 0 deletions refact_lsp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.0.1

0 comments on commit 59febb5

Please sign in to comment.