Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeze lsp version #87

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading