Skip to content

Commit

Permalink
Add tag latest option
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangelmorenochacon committed Jul 1, 2024
1 parent ad44b84 commit 9729780
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ jobs:

- name: Exit on invalid tag format
if: startsWith(github.ref, 'refs/tags/') && steps.check-tag-format.outputs.is_valid == 'false'
run: |
echo "Tag must follow SemVer convention. Aborting." && exit 1
run: echo "Tag must follow SemVer convention. Aborting." && exit 1

- name: Get release type
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -84,9 +83,9 @@ jobs:
if (!releaseTypeMatch) {
releaseType = 'latest'
} else {
releaseType = refName.match(regex)[0]
releaseType = releaseTypeMatch[0]
}
console.log(`Release type: ${releaseType}`);
console.log(`Release type: ${releaseType}`)
return releaseType
# - name: Publish release
Expand Down

0 comments on commit 9729780

Please sign in to comment.