-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Automate release note generation * Automate github release when deploying to production * update readme --------- Co-authored-by: Hammerbeck <andreas.hammerbeck@digdir.no>
- Loading branch information
Showing
5 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Create release in github | ||
|
||
description: Create a release to git if the version has been bumped in the version.txt file | ||
|
||
inputs: | ||
GITHUB_TOKEN: | ||
description: "GitHub token" | ||
required: true | ||
default: ${{ github.token }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get version | ||
id: get-version | ||
uses: ./.github/actions/get-current-version | ||
|
||
- name: fetch tags | ||
shell: bash | ||
run: git fetch --tags | ||
|
||
- name: set latest tag | ||
shell: bash | ||
id: set-latest-tag | ||
run: | | ||
echo "latestTag=$(git tag | sort --version-sort | tail -n1)" >> $GITHUB_OUTPUT | ||
- name: Create release | ||
shell: bash | ||
if: ${{ !(steps.set-latest-tag.outputs.latestTag == steps.get-version.outputs.version) }} | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} | ||
TAG: ${{ steps.get-version.outputs.version }} | ||
run: | | ||
gh release create "$TAG" --title="v${{steps.get-version.outputs.version}}" --generate-notes --target feat/automatic-release-notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- kind/breaking-change | ||
- title: New Features 🎉 | ||
labels: | ||
- kind/feature | ||
- title: Bugfixes 🐛 | ||
labels: | ||
- kind/bug | ||
- title: Other Changes | ||
labels: | ||
- kind/other | ||
- kind/user-story | ||
- title: Dependency Upgrades 📦 | ||
labels: | ||
- kind/dependencies | ||
- title: Uncategorized changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters