Skip to content

Commit

Permalink
Update main.yml - Better error messaging on Delete tag
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbl authored Oct 15, 2023
1 parent 1693888 commit 6e595c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ jobs:
});
console.log(`Tag ${tagName} deleted successfully.`);
} catch (e) {
console.log(`Tag ${tagName} not deleted.`, e);
if (e.message.includes('Reference does not exist')) {
console.log(`Tag ${tagName} not found.`);
} else {
console.log(`Tag ${tagName} not deleted.`, e);
}
}
- name: Create tag
Expand Down

0 comments on commit 6e595c4

Please sign in to comment.