fix: use commit hash on webhooks

This commit is contained in:
Andras Bacsai
2024-05-15 10:44:45 +02:00
parent 0ffba45517
commit 1e09b2bbd8
4 changed files with 10 additions and 1 deletions

View File

@@ -1113,6 +1113,8 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
}
if ($this->saved_outputs->get('git_commit_sha') && !$this->rollback) {
$this->commit = $this->saved_outputs->get('git_commit_sha')->before("\t");
$this->application_deployment_queue->commit = $this->commit;
$this->application_deployment_queue->save();
}
}
private function clone_repository()