Skip to content

Commit

Permalink
chore(notify): debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 21, 2023
1 parent 99fdc62 commit 45b8efc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bring-it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- windows-latest
# - macos-latest
# - windows-latest
- ubuntu-latest
node:
- lts/*
Expand Down
20 changes: 17 additions & 3 deletions packages/notify/lib/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,28 @@ function getlog(since, until) {
function getLogs() {
try {
return getlog(GIT_PREVIOUS_COMMIT, GIT_COMMIT);
} catch {
return getlog('HEAD~5', 'HEAD');
} catch (error) {
console.error(error);

try {
return getlog('HEAD~5', 'HEAD');
} catch (error_) {
console.error(error_);

try {
return getlog('HEAD~1', 'HEAD');
} catch (error__) {
console.error(error__);

return [];
}
}
}
}

function getCommits() {
const io =
GIT_COMMIT === GIT_PREVIOUS_COMMIT
GIT_COMMIT && GIT_COMMIT === GIT_PREVIOUS_COMMIT
? []
: sortBy(
Object.entries(
Expand Down
2 changes: 1 addition & 1 deletion packages/notify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/notify",
"version": "0.2.3",
"version": "0.2.4",
"description": "Send releases notifications",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 45b8efc

Please sign in to comment.