Skip to content

Commit 005ab7e

Browse files
committed
chore: log properly warning when package version is not found
1 parent dbd3c39 commit 005ab7e

File tree

1 file changed

+2
-2
lines changed
  • actions/docker/prune-pull-requests-image-tags

1 file changed

+2
-2
lines changed

actions/docker/prune-pull-requests-image-tags/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ runs:
143143
144144
await Promise.all(
145145
packageVersionsToDelete.map(
146-
async ({ id }) => {
146+
async ({ id, name }) => {
147147
try{
148148
await github.rest.packages.deletePackageVersionForOrg({
149149
...packagePayload,
150150
package_version_id: id,
151151
});
152152
} catch(error){
153153
if (error.status === 404) {
154-
core.warning(`Image version ${id} not found`);
154+
core.warning(`Package version ${name} (${id}) cannot be deleted as it is not found`);
155155
} else {
156156
throw error;
157157
}

0 commit comments

Comments
 (0)