Skip to content

Commit

Permalink
testing not deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Jun 26, 2020
1 parent 717962d commit e6e035c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9750,7 +9750,12 @@ function uploadFile(entry, storageName, accessKey) {
if (response.status === 200) {
core_1.info(`Successfull deployment of ${entry.path}`);
}
else {
return response;
}
return response;
}).catch(errorObj => {
core_1.error(errorObj);
});
}
async function run(path, storageName, accessKey) {
Expand Down
6 changes: 5 additions & 1 deletion src/uploader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';
import fetch from 'node-fetch';
import readdirp from 'readdirp';
import { info } from '@actions/core';
import { info, error } from '@actions/core';

function uploadFile(entry: readdirp.EntryInfo, storageName: string, accessKey: string) {
const stats = fs.statSync(entry.fullPath);
Expand All @@ -19,8 +19,12 @@ function uploadFile(entry: readdirp.EntryInfo, storageName: string, accessKey: s
}).then(response => {
if (response.status === 200) {
info(`Successfull deployment of ${entry.path}`);
} else {
return response;
}
return response;
}).catch(errorObj => {
error(errorObj);
});
}

Expand Down

0 comments on commit e6e035c

Please sign in to comment.