Skip to content

Commit

Permalink
Test Option.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Nov 2, 2023
1 parent fe2d4a8 commit cbe5708
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
- cron: '0 8 * * *'
workflow_dispatch:
inputs:
JDT_LS_DOWNLOAD_PATH:
description: 'The release version of JDT-LS to use.'
JDT_LS_VERSION:
description: 'The (optional) release version (including qualifier) of JDT-LS to use.'
type: string
publishPreRelease:
description: 'Publish a pre-release ?'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
if: ${{ needs.should-build-change.outputs.repo-cache-hit != 'true' || github.event_name != 'schedule' }}
steps:
- name: Checkout JDT-LS
if: "${{ inputs.JDT_LS_DOWNLOAD_PATH != '' }}"
if: "${{ inputs.JDT_LS_VERSION != '' }}"
uses: actions/checkout@v2
with:
repository: eclipse-jdtls/eclipse.jdt.ls
Expand All @@ -84,7 +84,7 @@ jobs:
java-version: '17'
distribution: 'adopt'
- name: Build JDT-LS
if: "${{ inputs.JDT_LS_DOWNLOAD_PATH == '' }}"
if: "${{ inputs.JDT_LS_VERSION == '' }}"
run: |
./mvnw clean verify -B -DskipTests -Pserver-distro
mkdir ../staging
Expand All @@ -98,9 +98,10 @@ jobs:
- name: Install NodeJS dependencies
run: npm install -g typescript "@vscode/vsce" "ovsx"
- name: Download JDT-LS Release
if: "${{ inputs.JDT_LS_DOWNLOAD_PATH != '' }}"
if: "${{ inputs.JDT_LS_VERSION != '' }}"
run: |
curl -Lo jdt-language-server-release.tar.gz https://download.eclipse.org/jdtls/milestones/${{ inputs.JDT_LS_DOWNLOAD_PATH }}
version=`echo ${{ inputs.JDT_LS_VERSION }} | cut -d- -f1`
curl -Lo jdt-language-server-release.tar.gz https://download.eclipse.org/jdtls/milestones/${version}/jdt-language-server-${{ inputs.JDT_LS_VERSION }}.tar.gz
- name: Build vscode-java
run: |
npm install
Expand Down

0 comments on commit cbe5708

Please sign in to comment.