@@ -13742,13 +13742,13 @@ function getEnvironment(ref) {
1374213742 return environment;
1374313743}
1374413744exports.getEnvironment = getEnvironment;
13745- function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl) {
13745+ function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl, sha ) {
1374613746 var _a;
1374713747 return __awaiter(this, void 0, void 0, function* () {
1374813748 if (slackToken === '' || slackChannel === '') {
1374913749 return;
1375013750 }
13751- const { actor, repo, sha, payload } = context;
13751+ const { actor, repo, payload } = context;
1375213752 try {
1375313753 const statusIcon = status === 'success' ? '✅' : '❌';
1375413754 const afterSha = sha.slice(0, 7);
@@ -14085,7 +14085,7 @@ const github = __importStar(__webpack_require__(469));
1408514085const complete_1 = __webpack_require__(74);
1408614086const utils_1 = __webpack_require__(611);
1408714087function post() {
14088- var _a, _b, _c, _d, _e;
14088+ var _a, _b, _c, _d, _e, _f ;
1408914089 return __awaiter(this, void 0, void 0, function* () {
1409014090 let token;
1409114091 let type;
@@ -14096,6 +14096,7 @@ function post() {
1409614096 let slackChannel;
1409714097 let deploymentConfidenceUrl;
1409814098 let mutateDeployment;
14099+ let currentSha;
1409914100 const { actor, ref, repo, sha } = github.context;
1410014101 console.log('### post.context ###');
1410114102 console.log(`actor: ${actor}`);
@@ -14121,7 +14122,9 @@ function post() {
1412114122 // was already mutated by another action and we just want to notify
1412214123 mutateDeployment = utils_1.getInput('mutate_deployment') !== 'false';
1412314124 console.log(`mutate_deployment: ${mutateDeployment.toString()}`);
14124- deploymentConfidenceUrl = (_e = utils_1.getInput('deployment_confidence_url')) !== null && _e !== void 0 ? _e : '';
14125+ currentSha = (_e = utils_1.getInput('current_sha')) !== null && _e !== void 0 ? _e : sha;
14126+ console.log(`current_sha: ${currentSha}`);
14127+ deploymentConfidenceUrl = (_f = utils_1.getInput('deployment_confidence_url')) !== null && _f !== void 0 ? _f : '';
1412514128 console.log(`deployment confidence dashboard URL: ${deploymentConfidenceUrl}`);
1412614129 }
1412714130 catch (error) {
@@ -14143,7 +14146,7 @@ function post() {
1414314146 return;
1414414147 }
1414514148 // Post Slack notification
14146- yield utils_1.postSlackNotification(slackToken, slackChannel, environment, status, github.context, deploymentConfidenceUrl);
14149+ yield utils_1.postSlackNotification(slackToken, slackChannel, environment, status, github.context, deploymentConfidenceUrl, currentSha );
1414714150 try {
1414814151 // If the deployment was managed by another workflow we don't want to mutate it here
1414914152 if (mutateDeployment)
0 commit comments