Remove repo param support & logs

This commit is contained in:
Nishtha Gupta
2022-12-29 15:51:31 +05:30
parent 64305dab94
commit 9dbafb83da
7 changed files with 0 additions and 30 deletions

View File

@@ -7,13 +7,11 @@ import {deleteVersions} from './delete'
import {catchError} from 'rxjs/operators'
function getActionInput(): Input {
console.log('this is deletion using rest APIs')
return new Input({
packageVersionIds: getInput('package-version-ids')
? getInput('package-version-ids').split(',')
: [],
owner: getInput('owner') ? getInput('owner') : context.repo.owner,
repo: getInput('repo') ? getInput('repo') : context.repo.repo,
packageName: getInput('package-name'),
packageType: getInput('package-type'),
numOldVersionsToDelete: Number(getInput('num-old-versions-to-delete')),