Skip to content

Commit

Permalink
updated tagging error detection
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef committed Sep 6, 2021
1 parent c77eb15 commit b43bb37
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master
workflow_run:
workflows:
- CodeQL
- CI
types:
- completed
workflow_dispatch:
Expand Down Expand Up @@ -34,9 +34,10 @@ jobs:
ref: "refs/tags/${{ env.DATE }}",
sha: context.sha
});
} catch (e) {
console.log("Tag already exists: " + e)
tagExists.push(e);
} catch (e) { // Tag alredy exists
if (e.status == 422) {
tagExists.push(e);
}
}
if (tagExists.length > 0) {
Expand Down

0 comments on commit b43bb37

Please sign in to comment.