-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add changelog and automate version bump and release workflows #42
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
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9bfab31
add a change log
2bndy5 6d4e297
update docs/themepagetoc.js per advice from @coderabbitai
2bndy5 5d66632
update CI triggers per code review
2bndy5 8d5d2ff
quote bash parameters
2bndy5 665065c
change bump_version.py per advice from @coderabbitai
2bndy5 ea7ed7d
improve error message in bump_version.py
2bndy5 e426c55
apply other suggestions about git-cliff config
2bndy5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,63 @@ | ||
name: Bump-n-Release | ||
|
||
# NOTE: The change log is only updated in the remote upon release (in `bump-release` job) | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
inputs: | ||
component: | ||
type: choice | ||
required: true | ||
default: patch | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
- rc | ||
|
||
jobs: | ||
bump-release: | ||
if: github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.BUMP_N_RELEASE }} | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: cargo-bins/cargo-binstall@main | ||
- run: cargo binstall -y git-cliff | ||
- name: Bump ${{ inputs.component }} verion | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | ||
GH_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | ||
run: python .github/workflows/bump_version.py ${{ inputs.component }} | ||
id: tagged | ||
|
||
update-changelog: | ||
if: github.event_name != 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.BUMP_N_RELEASE }} | ||
fetch-depth: 0 | ||
- name: Generate a changelog | ||
uses: orhun/git-cliff-action@v4 | ||
id: git-cliff | ||
with: | ||
config: cliff.toml | ||
args: --unreleased | ||
env: | ||
OUTPUT: ${{ runner.temp }}/changes.md | ||
GITHUB_REPO: ${{ github.repository }} | ||
GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | ||
- run: cat "${{ runner.temp }}/changes.md" >> "$GITHUB_STEP_SUMMARY" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
name: 'Close stale issues' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
stale: | ||
uses: cpp-linter/.github/.github/workflows/stale.yml@main | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.