Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/changelog_configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"categories": [
{
"title": "## 🚀 Enhancements",
"labels": ["enhancement"]
},
{
"title": "## 🔥 UI",
"labels": ["ui"]
},
{
"title": "## 🐛 Bugs",
"labels": ["bug"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
}
],
"ignore_labels": [
"null"
],
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
"pr_template": "- PR: #${{NUMBER}} - ${{TITLE}}",
"empty_template": "- no changes"
}

13 changes: 13 additions & 0 deletions .github/workflows/labelyaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
name: label-PR
jobs:
labelCheck:
runs-on: ubuntu-latest
steps:
- name: Pull request label check
uses: NathanielHill/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'bug, enhancement, ui, test, null'
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,20 @@ jobs:
run: |
aws s3 cp cmd/mccp/mccp-${{ env.TAG }}-linux-amd64 s3://weaveworks-wkp/releases/mccp-${{ env.TAG }}-linux-amd64
aws s3 cp cmd/mccp/mccp-${{ env.TAG }}-darwin-amd64 s3://weaveworks-wkp/releases/mccp-${{ env.TAG }}-darwin-amd64
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
with:
configuration: "${{ github.workspace }}/.github/workflows/changelog_configuration.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
fail_on_unmatched_files: true
body: ${{steps.github_release.outputs.changelog}}
files: |
cmd/mccp/mccp-${{ env.TAG }}-linux-amd64
cmd/mccp/mccp-${{ env.TAG }}-darwin-amd64