Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
obrassard authored Mar 5, 2020
1 parent 6916bb4 commit 662ee36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ var creds = {

var now = new Date().toISOString().slice(0,10);

var ref = "";
if (process.env.GITHUB_REF) {
ref = process.env.GITHUB_REF.substr(process.env.GITHUB_REF.lastIndexOf('/') + 1);
}

var fileOptions = {
folder: process.env.LIB_FOLDER,
fileName: `${trimSlashes(process.env.GITHUB_REPOSITORY)}_release_${now}.zip`,
fileName: `${trimSlashes(process.env.GITHUB_REPOSITORY)}_${ref}_${now}.zip`,
fileContent: fs.readFileSync(process.env.FILE_PATH)
};

Expand Down

0 comments on commit 662ee36

Please sign in to comment.