Skip to content

Commit

Permalink
v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelhor committed Aug 24, 2021
1 parent 7cd7774 commit 6bfbc16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 249 deletions.
242 changes: 1 addition & 241 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ async function main() {
defaultVersion: 'beta'
});

if (fs.existsSync(file)) {
//if (fs.existsSync(file)) {
let fileStream = fs.createReadStream(file);
let response = await client
.api(`trustFramework/policies/${policy}/$value`)
.putStream(fileStream);

core.notice('Policy file ' + file + ' has been uploaded successfully.');
}
else
{
core.error('Policy file ' + file + ' not found.')
core.setFailed();
}
//}
//else
//{
// core.error('Policy file ' + file + ' not found.')
// core.setFailed();
//}

} catch (error) {
let errorText = error.message ?? error;
Expand Down

0 comments on commit 6bfbc16

Please sign in to comment.