File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const {EsbuildPlugin} = require('esbuild-loader');
88
99const childProcess = require ( 'child_process' ) ;
1010const { DefinePlugin} = require ( "webpack" ) ;
11- const COMMIT_SHA = childProcess . execSync ( 'git rev-parse HEAD' ) . toString ( ) . trim ( ) ;
12- const COMMIT_BRANCH = childProcess . execSync ( "git rev-parse --abbrev-ref HEAD" ) . toString ( ) . trim ( ) ;
11+ const COMMIT_SHA = process . env . SOURCE_COMMIT || process . env . GITHUB_SHA || childProcess . execSync ( 'git rev-parse HEAD' ) . toString ( ) . trim ( ) ;
12+ const COMMIT_BRANCH = process . env . SOURCE_BRANCH || process . env . GITHUB_REF_NAME || childProcess . execSync ( "git rev-parse --abbrev-ref HEAD" ) . toString ( ) . trim ( ) ;
1313const VERSION = require ( './package.json' ) . version ;
1414
1515module . exports = ( env , argv ) => ( [ {
You can’t perform that action at this time.
0 commit comments