Skip to content

Commit

Permalink
fix: remove hardcoded days-to-delete & exit with 0 when no branches f…
Browse files Browse the repository at this point in the history
…or deletion found
  • Loading branch information
Balvajs committed Aug 6, 2023
1 parent 233924c commit 9cff0a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions dist/main.cjs

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

2 changes: 1 addition & 1 deletion dist/main.cjs.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const pluralizeBranches = (count: number) =>
count === 1 ? 'branch' : 'branches'

async function run(): Promise<void> {
process.env['INPUT_DAYS-TO-DELETE'] = '90'

const { ghToken, daysToDelete, dryRun, repositoryName, repositoryOwner } =
getInputs()

Expand Down Expand Up @@ -64,7 +62,7 @@ async function run(): Promise<void> {
if (!branchesToDelete.length) {
console.log('\n\nNo stale branches found.')

process.exit(1)
process.exit(0)
}

console.log(
Expand Down

0 comments on commit 9cff0a3

Please sign in to comment.