Add commitHashs to output
Signed-off-by: Lukas Fruntke (external expert on behalf of DB Netz) <lukas.fruntke-extern@deutschebahn.com>
This commit is contained in:
parent
cd6ab5355e
commit
69e976155a
@@ -107,6 +107,7 @@ export function createGithubRepoPushAction(options: {
|
||||
properties: {
|
||||
remoteUrl: outputProps.remoteUrl,
|
||||
repoContentsUrl: outputProps.repoContentsUrl,
|
||||
commitHash: outputProps.commitHash,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -151,7 +152,7 @@ export function createGithubRepoPushAction(options: {
|
||||
const remoteUrl = targetRepo.data.clone_url;
|
||||
const repoContentsUrl = `${targetRepo.data.html_url}/blob/${defaultBranch}`;
|
||||
|
||||
await initRepoPushAndProtect(
|
||||
const { commitHash } = await initRepoPushAndProtect(
|
||||
remoteUrl,
|
||||
octokitOptions.auth,
|
||||
ctx.workspacePath,
|
||||
@@ -180,6 +181,7 @@ export function createGithubRepoPushAction(options: {
|
||||
|
||||
ctx.output('remoteUrl', remoteUrl);
|
||||
ctx.output('repoContentsUrl', repoContentsUrl);
|
||||
ctx.output('commitHash', commitHash);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,5 +23,11 @@ const repoContentsUrl = {
|
||||
type: 'string',
|
||||
};
|
||||
|
||||
const commitHash = {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
};
|
||||
|
||||
export { remoteUrl };
|
||||
export { repoContentsUrl };
|
||||
export { commitHash };
|
||||
|
||||
@@ -108,6 +108,10 @@ export function createPublishAzureAction(options: {
|
||||
title: 'The Id of the created repository',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -289,6 +289,10 @@ export function createPublishBitbucketAction(options: {
|
||||
title: 'A URL to the root of the repository',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -182,6 +182,10 @@ export function createPublishBitbucketCloudAction(options: {
|
||||
title: 'A URL to the root of the repository',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -205,6 +205,10 @@ export function createPublishBitbucketServerAction(options: {
|
||||
title: 'A URL to the root of the repository',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -149,6 +149,10 @@ export function createPublishGerritAction(options: {
|
||||
title: 'A URL to the root of the repository',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -156,6 +156,7 @@ export function createPublishGithubAction(options: {
|
||||
properties: {
|
||||
remoteUrl: outputProps.remoteUrl,
|
||||
repoContentsUrl: outputProps.repoContentsUrl,
|
||||
commitHash: outputProps.commitHash,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -125,6 +125,10 @@ export function createPublishGitlabAction(options: {
|
||||
title: 'The ID of the project',
|
||||
type: 'string',
|
||||
},
|
||||
commitHash: {
|
||||
title: 'The commithash of the initial commit',
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user