@@ -13742,13 +13742,13 @@ function getEnvironment(ref) {
13742
13742
return environment;
13743
13743
}
13744
13744
exports.getEnvironment = getEnvironment;
13745
- function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl) {
13745
+ function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl, sha ) {
13746
13746
var _a;
13747
13747
return __awaiter(this, void 0, void 0, function* () {
13748
13748
if (slackToken === '' || slackChannel === '') {
13749
13749
return;
13750
13750
}
13751
- const { actor, repo, sha, payload } = context;
13751
+ const { actor, repo, payload } = context;
13752
13752
try {
13753
13753
const statusIcon = status === 'success' ? '✅' : '❌';
13754
13754
const afterSha = sha.slice(0, 7);
@@ -14085,7 +14085,7 @@ const github = __importStar(__webpack_require__(469));
14085
14085
const complete_1 = __webpack_require__(74);
14086
14086
const utils_1 = __webpack_require__(611);
14087
14087
function post() {
14088
- var _a, _b, _c, _d, _e;
14088
+ var _a, _b, _c, _d, _e, _f ;
14089
14089
return __awaiter(this, void 0, void 0, function* () {
14090
14090
let token;
14091
14091
let type;
@@ -14096,6 +14096,7 @@ function post() {
14096
14096
let slackChannel;
14097
14097
let deploymentConfidenceUrl;
14098
14098
let mutateDeployment;
14099
+ let currentSha;
14099
14100
const { actor, ref, repo, sha } = github.context;
14100
14101
console.log('### post.context ###');
14101
14102
console.log(`actor: ${actor}`);
@@ -14121,7 +14122,9 @@ function post() {
14121
14122
// was already mutated by another action and we just want to notify
14122
14123
mutateDeployment = utils_1.getInput('mutate_deployment') !== 'false';
14123
14124
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 : '';
14125
14128
console.log(`deployment confidence dashboard URL: ${deploymentConfidenceUrl}`);
14126
14129
}
14127
14130
catch (error) {
@@ -14143,7 +14146,7 @@ function post() {
14143
14146
return;
14144
14147
}
14145
14148
// 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 );
14147
14150
try {
14148
14151
// If the deployment was managed by another workflow we don't want to mutate it here
14149
14152
if (mutateDeployment)
0 commit comments