Read contents of the function's directory

This commit is contained in:
Maciej Pędzich 2023-07-06 14:24:01 +02:00
parent 88ac521fae
commit 4156458106

View File

@ -1,8 +1,8 @@
import { readdirSync } from 'fs';
console.log('/var/runtime:\n' + readdirSync('/var/runtime'));
console.log(readdirSync('/var/task/netlify/functions/validate-pr'));
process.chdir('/var/runtime');
process.chdir('/var/task/netlify/functions/validate-pr');
import {
createProbot,