Skip to content

Commit

Permalink
Update release workflow and add GitReleaseManager config
Browse files Browse the repository at this point in the history
Updated the release workflow to specify 'actions' as the repository and added 'targetcommitish' parameter to the milestone step. Introduced a new GitReleaseManager.yml file for managing issue labels and automating release notes, supporting consistent release process documentation.
  • Loading branch information
arturcic committed Dec 10, 2024
1 parent 4e730e9 commit 977a540
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ jobs:
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
repository: actions
milestone: "v${{ steps.gitversion.outputs.majorMinorPatch }}"
name: "v${{ steps.gitversion.outputs.majorMinorPatch }}"
isPreRelease: 'false'
targetcommitish: 'main'
- run: |
$mode = "prod"
$date = Get-Date -format "yyMMddHH"
Expand All @@ -67,15 +68,15 @@ jobs:
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
repository: actions
milestone: "v${{ steps.gitversion.outputs.majorMinorPatch }}"
assets: ${{ steps.publish-azure.outputs.vsix }}
- name: Close Release
uses: ./gitreleasemanager/close
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
repository: actions
milestone: "v${{ steps.gitversion.outputs.majorMinorPatch }}"
- name: Get tags
id: get-tags
Expand Down
41 changes: 41 additions & 0 deletions GitReleaseManager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
issue-labels-include:
- breaking change
- bug
- dependencies
- documentation
- feature
- improvement
issue-labels-exclude:
- build
issue-labels-alias:
- name: breaking change
header: Breaking change
plural: Breaking changes
- name: bug
header: Bug
plural: Bugs
- name: dependencies
header: Dependencies
plural: Dependencies
- name: documentation
header: Documentation
plural: Documentation
- name: feature
header: Features
plural: Features
- name: improvement
header: Improvements
plural: Improvements
create:
include-sha-section: true
sha-section-heading: "SHA256 Hashes of the release artifacts"
sha-section-line-format: "- `{1}\t- {0}`"
allow-update-to-published: true
close:
use-issue-comments: true
issue-comment: |-
:tada: This issue has been resolved in version {milestone} :tada:
The release is available on:
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone})
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:

0 comments on commit 977a540

Please sign in to comment.