Skip to content

Commit

Permalink
fix: fix major tag creation (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Dec 31, 2023
1 parent e7d51d3 commit 18cb3eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/_semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ jobs:
with:
fetch-depth: 0

- name: Set tag
id: tag
run: |
tag=$(echo "${{ needs.semantic-release.outputs.new_release_tag }}" | cut -d'.' -f1)
echo "name=$tag" >> $GITHUB_OUTPUT
- name: Update Tag
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.tag.outputs.name }}
tag_name: v${{ needs.semantic-release.outputs.new_release_major_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ on:
new_release_version:
description: The new release version
value: ${{ jobs.semantic-release.outputs.new_release_version }}
new_release_major_version:
description: The new release major version
value: ${{ jobs.semantic-release.outputs.new_release_major_version }}
new_release_minor_version:
description: The new release minor version
value: ${{ jobs.semantic-release.outputs.new_release_minor_version }}
new_release_patch_version:
description: The new release patch version
value: ${{ jobs.semantic-release.outputs.new_release_patch_version }}

jobs:
####################
Expand All @@ -39,6 +48,9 @@ jobs:
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
new_release_major_version: ${{ steps.semantic.outputs.new_release_major_version }}
new_release_minor_version: ${{ steps.semantic.outputs.new_release_minor_version }}
new_release_patch_version: ${{ steps.semantic.outputs.new_release_patch_version }}

steps:
- name: Checkout repository
Expand Down

0 comments on commit 18cb3eb

Please sign in to comment.