Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
louanfontenele committed Dec 29, 2024
1 parent 22c6681 commit 4495ff3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name-template: "Release {{ nextReleaseVersion }} 🚀"
tag-template: "v{{ nextReleaseVersion }}"
version-template: "{{ nextReleaseVersion }}"
name-template: "Release ${{ nextReleaseVersion }} 🚀"
tag-template: "v${{ nextReleaseVersion }}"
version-template: "${{ nextReleaseVersion }}"

categories:
- title: "🚀 Features"
Expand All @@ -20,14 +20,14 @@ categories:
change-template: "- $TITLE by @$AUTHOR in #$NUMBER"

no-labels-merge-method: "title"
no-labels-template: "- $TITLE (commit: [`$SHORT_SHA`](https://github.com/{{github.repository}}/commit/$FULL_SHA))"
no-labels-template: "- $TITLE (commit: [`$SHORT_SHA`](https://github.com/${{ github.repository }}/commit/$FULL_SHA))"

template: |
## What's Changed
$CHANGES
## 📦 Full Changelog
repository: `{{ github.repository | default: 'unknown/repo' }}`
previousTag: `{{ previousTag | default: 'N/A' }}`
currentTag: `{{ currentTag | default: 'N/A' }}`
[Compare Changes](https://github.com/{{ github.repository | default: 'unknown/repo' }}/compare/{{ previousTag | default: 'N/A' }}...{{ currentTag | default: 'N/A' }})
repository: `${{ github.repository }}`
previousTag: `${{ env.PREVIOUS_TAG | default: 'N/A' }}`
currentTag: `${{ env.CURRENT_TAG | default: 'N/A' }}`
[Compare Changes](https://github.com/${{ github.repository }}/compare/${{ env.PREVIOUS_TAG | default: 'N/A' }}...${{ env.CURRENT_TAG | default: 'N/A' }})
5 changes: 4 additions & 1 deletion .github/workflows/release-windows-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ jobs:
git tag -a $NEW_TAG -m "Release $NEW_TAG"
git push origin $NEW_TAG
fi
echo "tag=$NEW_TAG" >> $GITHUB_ENV
echo "previous_tag=$LATEST_TAG" >> $GITHUB_ENV
echo "current_tag=$NEW_TAG" >> $GITHUB_ENV
- name: Draft Release
id: draft_release
Expand All @@ -95,6 +96,8 @@ jobs:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PREVIOUS_TAG: ${{ env.previous_tag }}
CURRENT_TAG: ${{ env.current_tag }}

- name: Publish Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 4495ff3

Please sign in to comment.