-
Notifications
You must be signed in to change notification settings - Fork 1
fix(MESHAGEN-010-2): CU-86akbhhdk 2 review findings in release.yml #151
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 |
|---|---|---|
|
|
@@ -167,7 +167,7 @@ jobs: | |
| release: | ||
| name: "Create Release" | ||
| needs: [version, changes, build, build_helm] | ||
| if: ${{ !failure() && !cancelled() }} | ||
| if: ${{ github.event_name == 'workflow_dispatch' && !failure() && !cancelled() }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
|
|
@@ -196,3 +196,4 @@ jobs: | |
| prerelease: ${{ github.event_name == 'push' }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| body_path: RELEASE_HEADER.md | ||
|
|
||
|
Comment on lines
196
to
+199
Author
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. 🦩 🔴 release job lacks workflow_dispatch-only gate, enabling automatic release publication on push Same edit as finding 1 (the 🤖 Prompt for AI agentsfix confidence: 🟡 85 medium — react 👍/👎 to teach the reviewer |
||
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.
🦩 🔴 release.yml creates a GitHub Release automatically on push to master, not gated on workflow_dispatch
Added
github.event_name == 'workflow_dispatch' &&to theif:condition of thereleasejob (line ~186), so the job (and itsCreate Releasestep usingsoftprops/action-gh-release) will now only run when manually triggered via workflow_dispatch, not on push to master.🤖 Prompt for AI agents
fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer