From 6f293b534b5fc4dde5200ec6bd1fe044d948c3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Sat, 22 Oct 2022 15:16:51 +0200 Subject: [PATCH] Update upload.ts I had some issues with paths on windows, where the following wont glob any files ``` - name: Upload Customer Apps uses: fixpoint/azblob-upload-artifact@v4 with: connection-string: ${{ secrets.AZURE_ARTIFACT_STORE }} cleanup: true name: customer path: ${{runner.temp}}/customer.zip ``` --- src/upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload.ts b/src/upload.ts index 2653f62..2a81c42 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -48,7 +48,7 @@ export async function upload( }; // Upload the file/directory - const paths = glob.sync(path); + const paths = glob.sync(path.replace(/\\/g, '/')); for (const path of paths) { const stat = await fs.lstat(path); if (stat.isDirectory()) {