Skip to content

Commit

Permalink
cicl
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Jan 11, 2024
1 parent 8e128ac commit e4de1ab
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
22 changes: 15 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 @@ -36,14 +30,28 @@ jobs:
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
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
repo: smallcloudai/refact-lsp
branch: ${{ github.event.inputs.lsp_branch }}
branch: ${{ steps.setupvars.outputs.lsp_version }}
path: ./src/main/resources/bin

# Validate wrapper
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

- name: Set env CHANNEL
shell: bash
id: setupvars
run: |
raw=$(git branch -r --contains ${{ github.ref }})
GIT_BRANCH=${raw##*/}
Expand All @@ -50,6 +51,16 @@ jobs:
echo "PUBLISH_EAP=1" >> "$GITHUB_ENV"
fi
echo "GIT_BRANCH=${GIT_BRANCH}" >> "$GITHUB_ENV"
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 @@ -58,7 +69,7 @@ jobs:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
repo: smallcloudai/refact-lsp
branch: ${{ github.event.inputs.lsp_branch }}
branch: ${{ steps.setupvars.outputs.lsp_version }}
path: ./src/main/resources/bin

# Validate wrapper
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 e4de1ab

Please sign in to comment.