File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ inputs:
13
13
description : The deployment mode (default / rollback / unblock)
14
14
required : false
15
15
default : ' default'
16
+ custom_hash :
17
+ required : false
18
+ description : ' Custom hash of the deployment'
16
19
outputs :
17
20
tree_hash :
18
21
description : The tree hash of the performed deployment
Original file line number Diff line number Diff line change @@ -24324,12 +24324,14 @@ runAction(async () => {
24324
24324
async function cursorDeploy({
24325
24325
ref,
24326
24326
bucket,
24327
+ // NOTE: Using custom hash for deployment doesn't work will the rollback/unblock workflows
24328
+ customHash,
24327
24329
deployModeInput,
24328
24330
rollbackCommitHash
24329
24331
}) {
24330
24332
const deployMode = getDeployMode(deployModeInput);
24331
24333
const branchLabel = branchNameToHostnameLabel(ref);
24332
- const treeHash = await getDeploymentHash(deployMode, rollbackCommitHash);
24334
+ const treeHash = customHash ?? await getDeploymentHash(deployMode, rollbackCommitHash);
24333
24335
const rollbackKey = `rollbacks/${branchLabel}`;
24334
24336
const deployKey = `deploys/${branchLabel}`;
24335
24337
if (deployMode === "default" || deployMode === "unblock") {
Original file line number Diff line number Diff line change @@ -42,19 +42,22 @@ runAction(async () => {
42
42
interface CursorDeployActionArgs {
43
43
bucket : string
44
44
deployModeInput : string
45
+ customHash ?: string
45
46
rollbackCommitHash : string
46
47
ref : string
47
48
}
48
49
49
50
export async function cursorDeploy ( {
50
51
ref,
51
52
bucket,
53
+ // NOTE: Using custom hash for deployment doesn't work will the rollback/unblock workflows
54
+ customHash,
52
55
deployModeInput,
53
56
rollbackCommitHash
54
57
} : CursorDeployActionArgs ) {
55
58
const deployMode = getDeployMode ( deployModeInput )
56
59
const branchLabel = branchNameToHostnameLabel ( ref )
57
- const treeHash = await getDeploymentHash ( deployMode , rollbackCommitHash )
60
+ const treeHash = customHash ?? ( await getDeploymentHash ( deployMode , rollbackCommitHash ) )
58
61
59
62
const rollbackKey = `rollbacks/${ branchLabel } `
60
63
const deployKey = `deploys/${ branchLabel } `
You can’t perform that action at this time.
0 commit comments