Skip to content

Commit

Permalink
Provides reason for on_push actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Oct 23, 2015
1 parent b468bd2 commit 2cc5e9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion on_push.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
var botio = require(process.env['BOTIO_MODULE']);
require('shelljs/global');

try {
var jobInfo = JSON.parse(process.env['BOTIO_JOBINFO']);
var reason = 'See mozilla/pdf.js@' + jobInfo.head_sha;
process.env['PDFJS_UPDATE_REASON'] = reason;
echo('>> Setting reason to: ' + reason);
} catch (_) {}

exec('npm install', {async:false});

// uber test
Expand All @@ -23,4 +30,4 @@ exec('node make dist');
cd('build/dist');
exec('git push --tags [email protected]:mozilla/pdfjs-dist.git master');
exec('npm publish');
cd('../..');
cd('../..');

0 comments on commit 2cc5e9b

Please sign in to comment.