github-runner: install bundled Node.js scripts
Fixes a bug which caused workflow steps to fail if they called the `hashFiles` expression function; we didn't install it. This commit makes sure the Nodejs script is in the expected location. Same applies for the scripts in the `checkScripts` directory which we missed to install so far.
This commit is contained in:
@@ -242,6 +242,11 @@ stdenv.mkDerivation rec {
|
||||
ln -s ${nodejs-12_x} $out/externals/node12
|
||||
ln -s ${nodejs-16_x} $out/externals/node16
|
||||
|
||||
# Install Nodejs scripts called from workflows
|
||||
install -D src/Misc/layoutbin/hashFiles/index.js $out/lib/hashFiles/index.js
|
||||
mkdir -p $out/lib/checkScripts
|
||||
install src/Misc/layoutbin/checkScripts/* $out/lib/checkScripts/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user