Skip to content

Commit

Permalink
test expire
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 committed Aug 24, 2023
1 parent 0450d26 commit e2da52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/expire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
repo: repoName,
branch: pull['head']['ref'],
})
core.info(`branch (${branch['commit']})`);
const lastCommittedAt = branch['commit'][0]['committer']['date']
core.info(`branch (${branch['commit']['commit']})`);
const lastCommittedAt = branch['commit']['commit']['committer']['date']
core.info(`lastCommittedAt (${lastCommittedAt})`);
if (now.getTime() - new Date(Date.parse(lastCommittedAt)).getTime() < cutoffMs) {
Expand Down

0 comments on commit e2da52b

Please sign in to comment.