Skip to content

Commit

Permalink
feat(marketplace): 💄 Warn when domain expires within 2 weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougniel committed Dec 29, 2021
1 parent 1fcf888 commit c501674
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = async function () {
});

if (response.data.expired) {
core.wan(`⚠️ ${name}.${ext} is expired since ${response.data.dateExpiration} ⚠️`);
core.wan(`🚨 ${name}.${ext} is expired since ${response.data.dateExpiration} 🚨`);
} else if (response.data.nbDaysBeforeExpires <= 14) {
core.warn(`⚠️ ${name}.${ext} expires within ${response.data.nbDaysBeforeExpires} day(s) ⚠️`);
} else {
core.info(`✅ ${name}.${ext} expires within ${response.data.nbDaysBeforeExpires} day(s)`);
}
Expand Down

0 comments on commit c501674

Please sign in to comment.