File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ fluentci # Run the pipeline
80
80
fluentci --help
81
81
82
82
Usage: fluentci [pipeline] [jobs...]
83
- Version: 0.13.0
83
+ Version: 0.13.1
84
84
85
85
Description:
86
86
Original file line number Diff line number Diff line change 1
1
import { dir } from "../deps.ts" ;
2
2
3
- export const VERSION = "0.13.0 " ;
3
+ export const VERSION = "0.13.1 " ;
4
4
5
5
export const BASE_URL = "https://api.fluentci.io/v1" ;
6
6
Original file line number Diff line number Diff line change @@ -225,8 +225,24 @@ export async function setupRust() {
225
225
226
226
export async function setupFluentCIengine ( ) {
227
227
await setupPkgx ( ) ;
228
- let FLUENTCI_ENGINE_VERSION =
229
- Deno . env . get ( "FLUENTCI_ENGINE_VERSION" ) || "v0.2.5" ;
228
+ let FLUENTCI_ENGINE_VERSION = Deno . env . get ( "FLUENTCI_ENGINE_VERSION" ) ;
229
+
230
+ if ( ! FLUENTCI_ENGINE_VERSION ) {
231
+ FLUENTCI_ENGINE_VERSION = await fetch (
232
+ "https://api.github.com/repos/fluentci-io/fluentci-engine/releases/latest"
233
+ )
234
+ . then ( ( res ) => res . json ( ) )
235
+ . then ( ( data ) => data . tag_name )
236
+ . catch ( ( ) => {
237
+ console . error ( "Failed to fetch latest release." ) ;
238
+ Deno . exit ( 1 ) ;
239
+ } ) ;
240
+ }
241
+
242
+ if ( ! FLUENTCI_ENGINE_VERSION ) {
243
+ console . error ( "Failed to fetch latest release." ) ;
244
+ Deno . exit ( 1 ) ;
245
+ }
230
246
231
247
if ( ! FLUENTCI_ENGINE_VERSION . startsWith ( "v" ) ) {
232
248
FLUENTCI_ENGINE_VERSION = `v${ FLUENTCI_ENGINE_VERSION } ` ;
@@ -241,7 +257,7 @@ export async function setupFluentCIengine() {
241
257
args : [
242
258
"-c" ,
243
259
`\
244
- [ -n "$FLUENTCI_ENGINE_VERSION " ] && type fluentci-engine >/dev/null 2>&1 && rm \`which fluentci-engine\`;
260
+ [ -n "$FORCE_FLUENTCI_ENGINE_INSTALL " ] && type fluentci-engine >/dev/null 2>&1 && rm \`which fluentci-engine\`;
245
261
type fluentci-engine >/dev/null 2>&1 || pkgx wget https://github.com/fluentci-io/fluentci-engine/releases/download/${ FLUENTCI_ENGINE_VERSION } /fluentci-engine_${ FLUENTCI_ENGINE_VERSION } _${ target } .tar.gz;
246
262
type fluentci-engine >/dev/null 2>&1 || pkgx tar xvf fluentci-engine_${ FLUENTCI_ENGINE_VERSION } _${ target } .tar.gz;
247
263
type fluentci-engine >/dev/null 2>&1 || rm fluentci-engine_${ FLUENTCI_ENGINE_VERSION } _${ target } .tar.gz;
You can’t perform that action at this time.
0 commit comments