diff --git a/.github/workflows/_semantic_release.yml b/.github/workflows/_semantic_release.yml index 984dcb4..5681869 100644 --- a/.github/workflows/_semantic_release.yml +++ b/.github/workflows/_semantic_release.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6203306..6204782 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: #################### @@ -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