Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebonsignori committed Jul 5, 2023
1 parent 1578254 commit c9e8a06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions dist/action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function renderNotificationMessage(inputs, notification) {
* Renders notifications for Slack and then sends them
*/
async function sendToSlack(core, slack, inputs, notifications, lastRunDate) {
core.info(`Sending ${notifications.length} notifications to Slack...`);
const sinceDate = (0, dayjs_1.default)(lastRunDate)
.tz(inputs.timezone)
.format(inputs.dateFormat);
Expand Down Expand Up @@ -137,6 +138,7 @@ function renderNotificationMessage(inputs, notification) {
* Renders notifications for Webex and then sends them
*/
async function sendToWebex(core, webex, inputs, notifications, lastRunDate) {
core.info(`Sending ${notifications.length} notifications to Webex...`);
const sinceDate = (0, dayjs_1.default)(lastRunDate).tz(inputs.timezone).format(inputs.dateFormat);
// On rollup, send all notifications in one message body
if (inputs.rollupNotifications) {
Expand Down Expand Up @@ -217,7 +219,7 @@ const octokit_1 = __nccwpck_require__(57467);
const plugin_throttling_1 = __nccwpck_require__(9968);
const web_api_1 = __nccwpck_require__(60431);
const webex_1 = __importDefault(__nccwpck_require__(3698));
const artifact_1 = __importDefault(__nccwpck_require__(52605));
const artifact_1 = __nccwpck_require__(52605);
const fs_1 = __importDefault(__nccwpck_require__(57147));
const get_inputs_1 = __importDefault(__nccwpck_require__(59054));
const send_to_slack_1 = __importDefault(__nccwpck_require__(88958));
Expand Down Expand Up @@ -349,7 +351,7 @@ async function run(getCore, getOctokit, getSlack, getWebex) {
core.info(`${notifications.length} notifications fetched before filtering.`);
if (inputs.debugLogging && process.env.CI) {
fs_1.default.writeFileSync("notifications.json", JSON.stringify(notifications, null, 2));
const artifactClient = artifact_1.default.create();
const artifactClient = (0, artifact_1.create)();
await artifactClient.uploadArtifact("notifications", ["notifications.json"], ".", {
continueOnError: true,
retentionDays: 90,
Expand Down
2 changes: 1 addition & 1 deletion dist/action/index.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function renderNotificationMessage(inputs, notification) {
* Renders notifications for Slack and then sends them
*/
async function sendToSlack(core, slack, inputs, notifications, lastRunDate) {
core.info(`Sending ${notifications.length} notifications to Slack...`);
const sinceDate = (0, dayjs_1.default)(lastRunDate)
.tz(inputs.timezone)
.format(inputs.dateFormat);
Expand Down Expand Up @@ -137,6 +138,7 @@ function renderNotificationMessage(inputs, notification) {
* Renders notifications for Webex and then sends them
*/
async function sendToWebex(core, webex, inputs, notifications, lastRunDate) {
core.info(`Sending ${notifications.length} notifications to Webex...`);
const sinceDate = (0, dayjs_1.default)(lastRunDate).tz(inputs.timezone).format(inputs.dateFormat);
// On rollup, send all notifications in one message body
if (inputs.rollupNotifications) {
Expand Down Expand Up @@ -217,7 +219,7 @@ const octokit_1 = __nccwpck_require__(57467);
const plugin_throttling_1 = __nccwpck_require__(9968);
const web_api_1 = __nccwpck_require__(60431);
const webex_1 = __importDefault(__nccwpck_require__(3698));
const artifact_1 = __importDefault(__nccwpck_require__(52605));
const artifact_1 = __nccwpck_require__(52605);
const fs_1 = __importDefault(__nccwpck_require__(57147));
const get_inputs_1 = __importDefault(__nccwpck_require__(59054));
const send_to_slack_1 = __importDefault(__nccwpck_require__(88958));
Expand Down Expand Up @@ -349,7 +351,7 @@ async function run(getCore, getOctokit, getSlack, getWebex) {
core.info(`${notifications.length} notifications fetched before filtering.`);
if (inputs.debugLogging && process.env.CI) {
fs_1.default.writeFileSync("notifications.json", JSON.stringify(notifications, null, 2));
const artifactClient = artifact_1.default.create();
const artifactClient = (0, artifact_1.create)();
await artifactClient.uploadArtifact("notifications", ["notifications.json"], ".", {
continueOnError: true,
retentionDays: 90,
Expand Down
2 changes: 1 addition & 1 deletion dist/local/index.js.map

Large diffs are not rendered by default.

0 comments on commit c9e8a06

Please sign in to comment.