Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
update v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Lennon authored and Chris Lennon committed Aug 17, 2019
1 parent 520a9c2 commit e663d55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ function run() {
let toolPath;
toolPath = tc.find('aws', '*');
if (!toolPath) {
// download
const downloadUrl = `https://s3.amazonaws.com/aws-cli/awscli-bundle.zip`;
const downloadPath = yield tc.downloadTool(downloadUrl);
// extract
let extPath;
if (osPlat === 'darwin') {
extPath = yield tc.extractTar(downloadPath);
Expand All @@ -40,8 +42,9 @@ function run() {
yield execP(`unzip ${downloadPath} -d ${extPath}`);
}
else {
extPath = '/home/runner/work/_temp/';
extPath = yield tc.extractZip(downloadPath);
}
// install
const installPath = `${extPath}/.local/lib/aws`;
const binPath = `${installPath}/bin`;
yield execP(`${extPath}/awscli-bundle/install -i ${installPath}`);
Expand Down

0 comments on commit e663d55

Please sign in to comment.