-
Notifications
You must be signed in to change notification settings - Fork 82
ci: manage releases and version bumps with release-please #608
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, EONERC, RWTH Aachen University | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| name: Release Please | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| actions: write | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| release-please: | ||
| name: Prepare Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - id: release | ||
| uses: googleapis/release-please-action@v4 | ||
|
Check failure on line 22 in .github/workflows/release-please.yaml
|
||
| with: | ||
| token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} | ||
| target-branch: master | ||
|
|
||
| # A tag pushed with GITHUB_TOKEN starts no workflow, but a dispatch always does. | ||
| - name: Start the publish pipeline | ||
| if: steps.release.outputs.release_created == 'true' | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| TAG: ${{ steps.release.outputs.tag_name }} | ||
| run: gh workflow run publish_to_pypi.yaml --repo "${GITHUB_REPOSITORY}" --ref "${TAG}" | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,3 @@ | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing SPDX header in new JSON file All new source files must include an SPDX license header per project policy. The newly added .release-please-manifest.json lacks the required SPDX-FileCopyrightText and SPDX-License-Identifier lines, violating the Development/guidelines rule for new files. Suggested fix: Add the appropriate SPDX header comment at the top of the JSON file, matching the project's licensing (MPL-2.0).
Suggested change
Checked against the source: new manifest starts directly with JSON and contains no SPDX-FileCopyrightText or SPDX-License-Identifier header stage: domain-modeling
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing SPDX header in new JSON manifest New source files must contain an SPDX license header using the file's comment syntax. JSON has no native comment syntax, but the project convention requires a header (e.g. // SPDX-FileCopyrightText ... // SPDX-License-Identifier ...) at the top of the file. The manifest currently starts directly with JSON content, violating the SPDX requirement and breaking automated license compliance checks. Suggested fix: Add a SPDX header as the first two lines using // comments before the JSON object. This will satisfy the project's SPDX policy while remaining ignored by JSON parsers.
Suggested change
Checked against the source: new manifest starts directly with JSON and contains no SPDX-FileCopyrightText or SPDX-License-Identifier header stage: process-compliance |
||||||||||||||||||||||
| ".": "1.2.1" | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,71 @@ | ||||||||||||
| { | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add missing SPDX header to release-please config The new release-please configuration file lacks the required SPDX license identifier and copyright header. DPsim requires SPDX headers in all new files to comply with REUSE and licensing policy. Suggested fix: Add the SPDX header to the release-please-config.json file as shown in other DPsim configuration files. The header should be:
Suggested change
Checked against the source: new release-please config starts directly with JSON and contains no SPDX-FileCopyrightText or SPDX-License-Identifier header stage: tests-docs-coverage |
||||||||||||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||||||||||||
| "release-type": "simple", | ||||||||||||
| "changelog-sections": [ | ||||||||||||
| { | ||||||||||||
| "type": "feat", | ||||||||||||
| "section": "Added" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "fix", | ||||||||||||
| "section": "Fixed" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "perf", | ||||||||||||
| "section": "Changed" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "refactor", | ||||||||||||
| "section": "Changed" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "revert", | ||||||||||||
| "section": "Removed" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "security", | ||||||||||||
| "section": "Security" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "docs", | ||||||||||||
| "section": "Documentation" | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "build", | ||||||||||||
| "section": "Changed", | ||||||||||||
| "hidden": true | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "chore", | ||||||||||||
| "section": "Changed", | ||||||||||||
| "hidden": true | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "ci", | ||||||||||||
| "section": "Changed", | ||||||||||||
| "hidden": true | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "style", | ||||||||||||
| "section": "Changed", | ||||||||||||
| "hidden": true | ||||||||||||
| }, | ||||||||||||
| { | ||||||||||||
| "type": "test", | ||||||||||||
| "section": "Changed", | ||||||||||||
| "hidden": true | ||||||||||||
| } | ||||||||||||
| ], | ||||||||||||
| "packages": { | ||||||||||||
| ".": { | ||||||||||||
| "extra-files": [ | ||||||||||||
| "CMakeLists.txt", | ||||||||||||
| { | ||||||||||||
| "type": "toml", | ||||||||||||
| "path": "pyproject.toml", | ||||||||||||
| "jsonpath": "$.project.version" | ||||||||||||
| } | ||||||||||||
| ] | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add SPDX header to new manifest file
severity: medium · confidence: 95%The new file .release-please-manifest.json lacks an SPDX header. All new source, script, and workflow files must carry an SPDX header with SPDX-FileCopyrightText and SPDX-License-Identifier in the file's own comment syntax (# for JSON).
Suggested fix: Add the SPDX header at the top of the file using the correct JSON comment syntax:
// SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, EONERC, RWTH Aachen University
// SPDX-License-Identifier: MPL-2.0
Checked against the source: new manifest starts directly with JSON and contains no SPDX-FileCopyrightText or SPDX-License-Identifier header
stage: process-compliance