From 87c8f5b1ff2a008dc1cc151c9340ba4fcd170ee6 Mon Sep 17 00:00:00 2001 From: Marcin Lewandowski Date: Wed, 24 Jul 2024 08:12:03 +0200 Subject: [PATCH] ability to use any RavenDB server version when dispatching github action --- .github/workflows/RavenClient.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/RavenClient.yml b/.github/workflows/RavenClient.yml index 48bea1a0..41c410ef 100644 --- a/.github/workflows/RavenClient.yml +++ b/.github/workflows/RavenClient.yml @@ -7,6 +7,12 @@ on: branches: [ v5.4 ] pull_request: branches: [ v5.4 ] + workflow_dispatch: + inputs: + ravendb_version: + description: 'RavenDB Version' + required: true + type: string jobs: build: @@ -35,7 +41,12 @@ jobs: java-version: ${{ matrix.java-version }} - name: Download RavenDB Server - run: wget -O RavenDB.tar.bz2 "https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest?buildType=${{ env.RAVENDB_BUILD_TYPE }}&version=${{ matrix.serverVersion }}" + run: | + if [[ -n "${{ inputs.ravendb_version }}" ]]; then + wget -O RavenDB.tar.bz2 "https://daily-builds.s3.amazonaws.com/RavenDB-${{ inputs.ravendb_version }}-linux-x64.tar.bz2" + else + wget -O RavenDB.tar.bz2 "https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest?buildType=${{ env.RAVENDB_BUILD_TYPE }}&version=${{ matrix.serverVersion }}" + fi - run: mkdir certs - run: openssl genrsa -traditional -out certs/ca.key 2048