Skip to content

Fix release image workflow dispatch - #415

Merged
coderdan merged 1 commit into
mainfrom
fix/release-image-dispatch-repo
Jul 27, 2026
Merged

Fix release image workflow dispatch#415
coderdan merged 1 commit into
mainfrom
fix/release-image-dispatch-repo

Conversation

@coderdan

@coderdan coderdan commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the production release workflow's Postgres+EQL image dispatch when the job runs without a repository checkout.

gh workflow run otherwise tries to infer the repository from the current directory and fails with:

fatal: not a git repository (or any of the parent directories): .git

Passing --repo "$GITHUB_REPOSITORY" makes the dispatch independent of local Git metadata, matching the existing prerelease Rust dispatch pattern.

Verification

  • release.yml parses as YAML.
  • The equivalent explicit-repository command successfully dispatched the 3.0.2 Postgres+EQL recovery build.
  • Commit is GPG verified.

Summary by CodeRabbit

  • Chores
    • Improved the automated release process for PostgreSQL EQL images.
    • Release workflow dispatching is now more explicit and reliable, helping ensure images are built and published from the intended repository and version reference.
    • No changes were made to public features or application behavior.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96b96895-5db3-438d-914c-6071bf4df428

📥 Commits

Reviewing files that changed from the base of the PR and between 52e8cdb and e085cf8.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

The build-image job now dispatches the Postgres EQL image workflow with an explicit repository argument and reformatted command syntax.

Changes

Release workflow dispatch

Layer / File(s) Summary
Explicit repository dispatch
.github/workflows/release.yml
The gh workflow run command now passes ${GITHUB_REPOSITORY} via --repo and is split across multiple lines with comments.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: tobyhede

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: fixing the release image workflow dispatch command.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-image-dispatch-repo

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a reliability issue in the production release workflow by ensuring the gh workflow run dispatch for the Postgres+EQL image build works even when the job runs without a repository checkout (no local .git directory).

Changes:

  • Update the production image-build dispatch to pass --repo "${GITHUB_REPOSITORY}" explicitly to gh workflow run.
  • Add inline comments documenting why --repo is required for this no-checkout job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@freshtonic freshtonic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct fix. The dispatch-postgres-image job runs with no checkout, so gh workflow run had no .git to infer the repository from; passing --repo ${GITHUB_REPOSITORY} explicitly resolves that, and the added comment documents why the checkout is deliberately absent. --ref/-f inputs unchanged. CI-only, so no changeset needed. LGTM.

@coderdan
coderdan added this pull request to the merge queue Jul 27, 2026
Merged via the queue into main with commit c5e3935 Jul 27, 2026
19 checks passed
@coderdan
coderdan deleted the fix/release-image-dispatch-repo branch July 27, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants