-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add craft releases
#44
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: main
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,11 @@ | ||
| minVersion: '2.21.0' | ||
| changelog: | ||
| policy: auto | ||
| preReleaseCommand: >- | ||
| pwsh -Command " | ||
| @('app-runner/SentryAppRunner.psd1', 'sentry-api-client/SentryApiClient.psd1') | ForEach-Object { | ||
| (Get-Content $_) -replace \"ModuleVersion = '.*'\", \"ModuleVersion = '$env:CRAFT_NEW_VERSION'\" | Set-Content $_ | ||
| } | ||
| " | ||
|
Comment on lines
+4
to
+9
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. Bug: The regex in Suggested FixUpdate the regex pattern in the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. 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. Shell expansion corrupts PowerShell variables in preReleaseCommandHigh Severity The |
||
| targets: | ||
| - name: github | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Version to release (or "auto") | ||
| required: false | ||
| force: | ||
| description: Force a release even when there are release-blockers | ||
| type: boolean | ||
| default: false | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| prepare-release: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.GH_RELEASE_PAT }} | ||
| - uses: getsentry/craft@v2 | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| force: ${{ inputs.force }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Changelog | ||
|
|
||
| ## Unreleased | ||
|
|
||
| - Initial release. |


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.
Version regex won't match multi-space alignment in manifests
High Severity
The
-replaceregex patternModuleVersion = '.*'expects a single space betweenModuleVersionand=, but both.psd1files use multiple spaces for column alignment (e.g.,ModuleVersion = '1.0.0'). The regex won't match, so thepreReleaseCommandwill silently fail to update the version, and every release will ship with the hardcoded1.0.0version.