diff --git a/actions.js b/actions.js index 03a65f7..7255cef 100644 --- a/actions.js +++ b/actions.js @@ -36,12 +36,18 @@ async function deleteUntaggedOrderGreaterThan(config, octokit) { core.startGroup(`🗑 delete ${pkgs.length} packages`); for (const pkg of pkgs) { - await utils.deletePackageVersion( - octokit, - config.owner, - config.name, - pkg.id - ); + try { + await utils.deletePackageVersion( + octokit, + config.owner, + config.name, + pkg.id + ); + } catch (error) { + core.info(`⚠️ package #${pkg.id} not deleted: ${error.message}`); + continue; + } + core.info(`✅ package #${pkg.id} deleted.`); }