Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
theace0296 committed Jun 5, 2023
1 parent c3975a7 commit 462aec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/update-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ inputs:
description: 'Is prerelease?'
required: true
runs:
using: 'node12'
using: 'node16'
main: 'index.js'
4 changes: 2 additions & 2 deletions .github/update-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const run = async () => {

startGroup('Getting existing release id...');
const release = releases.find(rel => rel.name === releaseName);
if (!release?.id || release.id < 0) {
if (!release || release.id < 0) {
throw new Error('Existing release could not be found!');
}
endGroup();
Expand Down Expand Up @@ -98,7 +98,7 @@ const run = async () => {
body = body.substr(0, body.indexOf('Change log:') + 11);
const commits = (await github.repos.listCommits({ ...context.repo })).data;
const prevRelease = releases.find(rel => Date.parse(rel.created_at) < Date.parse(release.created_at));
const prevReleaseDate = Date.parse(prevRelease?.created_at ?? '');
const prevReleaseDate = Date.parse(prevRelease && prevRelease.created_at ? prevRelease.created_at : '');
for (const commit of commits) {
const date = Date.parse(commit.commit.author.date);
if (date > prevReleaseDate) {
Expand Down

0 comments on commit 462aec8

Please sign in to comment.