File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
const got = require ( 'got' )
2
2
const validate = require ( './validate' )
3
+ const validatorVersion = process . env . COMMIT_REF
4
+ ? process . env . COMMIT_REF . substring ( 0 , 7 )
5
+ : require ( './package.json' ) . version
3
6
4
7
function hasErrors ( data , required ) {
5
8
let hasError = false
@@ -424,6 +427,7 @@ class GBFS {
424
427
if ( ! gbfsResult . version ) {
425
428
return {
426
429
summary : {
430
+ validatorVersion,
427
431
versionUnimplemented : true
428
432
}
429
433
}
@@ -566,6 +570,7 @@ class GBFS {
566
570
567
571
return {
568
572
summary : {
573
+ validatorVersion,
569
574
version : {
570
575
detected : result [ 0 ] . version ,
571
576
validated : this . options . version || result [ 0 ] . version
Original file line number Diff line number Diff line change 2
2
command = " yarn build"
3
3
publish = " dist/website"
4
4
functions = " dist/functions"
5
+
6
+ [[plugins ]]
7
+ package = " netlify-plugin-inline-functions-env"
8
+ [plugins .inputs ]
9
+ buildEvent = " onBuild"
You can’t perform that action at this time.
0 commit comments