Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add release notes #237

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
25 changes: 25 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# .github/release.yml

changelog:
exclude:
labels:
- notes-ignore
categories:
- title: Controller Changes
labels:
- notes:ziti-controller
- title: Router Changes
labels:
- notes:ziti-router
- title: Tunneler Daemonset Changes
labels:
- notes:ziti-edge-tunnel
- title: Hosting Pod Changes
labels:
- notes:ziti-host
- title: zrok Changes
labels:
- notes:zrok
- title: Other Changes
labels:
- "*"
2 changes: 2 additions & 0 deletions .github/workflows/helm-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
workflow_dispatch:
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/miniziti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: install miniziti
uses: supplypike/setup-bin@v4
with:
# uri: https://raw.githubusercontent.com/qrkourier/ziti/d8a2d6e6da0c5edbf67357969a672daffc468bf3/quickstart/kubernetes/miniziti.bash
uri: https://get.openziti.io/miniziti.bash
name: miniziti
version: quickstartrelease
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
release:
name: Release Helm Charts
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -32,8 +34,9 @@ jobs:
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1
uses: netfoundry/chart-releaser-action@v0
with:
version: v0.1.6105
charts_dir: charts
skip_existing: true
mark_as_latest: true
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Notes Labeler

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
release-notes-labeler:
permissions:
contents: read
pull-requests: write

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

# GitHub's release notes generator uses these lables to select PRs to include
- name: Label Pull Request by Changed Charts
id: labeler
uses: maxisam/changed-files-labeler@v0.1.1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
basePaths: 'charts'
prefixes: 'notes|skip'
includedGlob: "" # no filter
debugShowPaths: true
layers: 1

- name: Debug Labeler
run: |
echo "Labels: ${{ steps.labeler.outputs.labels }}"
echo "Paths: ${{ steps.labeler.outputs.paths }}"
echo "Changed: ${{ steps.labeler.outputs.changed }}"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This repo uses GitHub Actions to automate the following tasks:

1. Generate Helm docs for each chart in the repo.
1. Package and index the charts and publish the new Helm repo index and READMEs to GitHub Pages.
1. Label pull requests for generating release notes (label `notes-ignore` excludes a PR from notes)

### Troubleshooting a Missing Chart

Expand Down
Loading