Skip to content

Commit 1070687

Browse files
committed
Adding base path
1 parent 31dd7a9 commit 1070687

File tree

5 files changed

+3567
-9
lines changed

5 files changed

+3567
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See the `directoriesToUpload` parameter, which supports passing multiple directo
1919
uses: armhil/azure-blobs-content-uploader@1.0.0
2020
with:
2121
azureBlobConfiguration: ${{ secrets.AZ_BLOB_CONFIGURATION }} # could be any secret that you have, see below for the format
22-
directoriesToUpload: '[{"path": "test/integrationtest-directory", "shouldRecurse": "true" }]'
22+
directoriesToUpload: '[{"path": "test/integrationtest-directory", "shouldRecurse": "true", "baseContainerPath": "somePath" }]'
2323
```
2424
2525
### Azure blob details
@@ -30,7 +30,7 @@ The content uploader supports uploading to multiple storage accounts, so you're
3030
uses: armhil/azure-blobs-content-uploader@1.0.0
3131
with:
3232
azureBlobConfiguration: ${{ secrets.AZ_BLOB_CONFIGURATION }} # could be any secret that you have, see below for the format
33-
directoriesToUpload: '[{"path": "test/integrationtest-directory", "shouldRecurse": "true" }]'
33+
directoriesToUpload: '[{"path": "test/integrationtest-directory", "shouldRecurse": "true", "baseContainerPath": "somePath" }]'
3434
```
3535
3636
You should use the below format for the `azureBlobConfiguration` parameter and this value should come from the secrets. **azureBlobConfiguration parameter is expected to contain the connection strings to blob storage accounts, so it's incredibly important to store it in github repository secrets, rather than some plaintext mechanism**.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ try {
1717
const directoriesToUpload = JSON.parse(core.getInput('directoriesToUpload')) || [];
1818
let filesToUpload = [];
1919
directoriesToUpload.forEach(t => {
20-
filesToUpload = filesToUpload.concat(fileUtils.getFilesForUpload(t.path, t.shouldRecurse, Object.keys(fileTypesToUpload)));
20+
filesToUpload = filesToUpload.concat(fileUtils.getFilesForUpload(t.path, t.shouldRecurse, t.baseContainerPath, Object.keys(fileTypesToUpload)));
2121
});
2222
/**
2323
* Azure Blob Configurations should look like

0 commit comments

Comments
 (0)