mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(ci): slice sha1 to 7 characters (#15974)
This commit is contained in:
@@ -13,8 +13,9 @@ const s3 = new S3({ apiVersion: '2006-03-01' });
|
||||
class CIScreenshotConnector extends IonicConnector {
|
||||
|
||||
async initBuild(opts) {
|
||||
const result = await execa.stdout('git', ['log', '-1', '--format=%h%n%an <%ae>%n%ct%n%s']);
|
||||
const [ sha1short, author, timestamp, msg ] = result.split('\n');
|
||||
const result = await execa.stdout('git', ['log', '-1', '--format=%H%n%an <%ae>%n%ct%n%s']);
|
||||
const [ sha1, author, timestamp, msg ] = result.split('\n');
|
||||
const sha1short = sha1.slice(0, 7);
|
||||
|
||||
opts.buildId = sha1short;
|
||||
opts.buildMessage = msg;
|
||||
|
||||
Reference in New Issue
Block a user