Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
3 changes: 0 additions & 3 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ changelog:
- title: Version Bumps
labels:
- dependencies
- title: What's Changed
labels:
- "*"
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
push:
tags:
- 'v*'
branches:
- 'feature/automatic-releases' # TODO - Remove before merging!
workflow_dispatch:

permissions:
contents: write
Expand All @@ -33,7 +30,7 @@ jobs:
run: |
# Get tag name and message
TAG_NAME=${GITHUB_REF#refs/tags/}
TAG_MESSAGE=$(git tag -n1 "$TAG_NAME" | sed "s/^$TAG_NAME[[:space:]]*//")
TAG_MESSAGE=$(git tag -n1 "$TAG_NAME" | sed "s|^$TAG_NAME[[:space:]]*||")

# If tag message is empty, use a default
if [ -z "$TAG_MESSAGE" ]; then
Expand Down Expand Up @@ -82,6 +79,12 @@ jobs:
fi
fi

- name: Update CHANGELOG.md
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./scripts/update-changelog-from-release.sh "${{ steps.tag_data.outputs.TAG_NAME }}"

- name: Commit and push changes
run: |
# Check if there are changes to commit
Expand All @@ -90,8 +93,8 @@ jobs:
exit 0
fi

git add config/manager/kustomization.yaml
git commit -m "chore: bump version to ${{ steps.tag_data.outputs.TAG_NAME }} [skip ci]"
git add config/manager/kustomization.yaml CHANGELOG.md
git commit -m "chore: bump version to ${{ steps.tag_data.outputs.TAG_NAME }} and update changelog [skip ci]"

# Push to main branch
git push origin HEAD:main
Loading
Loading