Merge branch 'main' into v2.0.32

This commit is contained in:
Andras Bacsai
2022-03-22 10:23:11 +01:00
3 changed files with 5 additions and 1 deletions

View File

@@ -119,6 +119,9 @@ export default async function (job) {
deployKeyId: gitSource.gitlabApp?.deployKeyId || null,
privateSshKey: decrypt(gitSource.gitlabApp?.privateSshKey) || null
});
if (!commit) {
throw new Error('No commit found?');
}
let tag = commit.slice(0, 7);
if (pullmergeRequestId) {
tag = `${commit.slice(0, 7)}-${pullmergeRequestId}`;