Skip to content

Commit 803b4eb

Browse files
Fix dist folder (#47)
* Fix dist folder Due to the README instructions not being correct we failed to publish the action-deploy package successfully.
1 parent 17d89c3 commit 803b4eb

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

dist/main/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13877,13 +13877,13 @@ function getEnvironment(ref) {
1387713877
return environment;
1387813878
}
1387913879
exports.getEnvironment = getEnvironment;
13880-
function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl) {
13880+
function postSlackNotification(slackToken, slackChannel, environment, status, context, deploymentConfidenceUrl, sha) {
1388113881
var _a;
1388213882
return __awaiter(this, void 0, void 0, function* () {
1388313883
if (slackToken === '' || slackChannel === '') {
1388413884
return;
1388513885
}
13886-
const { actor, repo, sha, payload } = context;
13886+
const { actor, repo, payload } = context;
1388713887
try {
1388813888
const statusIcon = status === 'success' ? '✅' : '❌';
1388913889
const afterSha = sha.slice(0, 7);

dist/post/index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13742,13 +13742,13 @@ function getEnvironment(ref) {
1374213742
return environment;
1374313743
}
1374413744
exports.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));
1408514085
const complete_1 = __webpack_require__(74);
1408614086
const utils_1 = __webpack_require__(611);
1408714087
function 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)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-deploy",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"private": true,
55
"description": "Action to manage GitHub deployments",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)