Skip to content

Fix release workflow repository dispatch payload#6

Draft
gormaniac with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-release-job-failure
Draft

Fix release workflow repository dispatch payload#6
gormaniac with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-release-job-failure

Conversation

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown

The release GitHub Actions job was failing after publishing artifacts because the final gh api repository-dispatch command used invalid shell quoting. This updates the dispatch step so the release can complete and notify cloud-infra reliably.

  • Root cause

    • The workflow built the package, generated docs, and created the GitHub release successfully.
    • Failure occurred in the final dispatch step due to mismatched quoting in the inline gh api arguments.
  • Workflow change

    • Replaced the fragile -f/-F shell-quoted invocation with a heredoc JSON payload passed to gh api --input -.
    • Preserved the existing dispatch fields: tag, source repository, and triggering commit SHA.
  • Result

    • The repository-dispatch call no longer depends on nested shell quoting.
    • The post-release notification path matches the intended payload structure for downstream consumers.
run: |
  gh api repos/gormaniac/cloud-infra/dispatches --input - <<EOF
  {
    "event_type": "doc-release",
    "client_payload": {
      "tag": "${{ github.ref_name }}",
      "repository": "${{ github.repository }}",
      "github_sha": "${{ github.sha }}"
    }
  }
  EOF

Copilot AI changed the title [WIP] Fix failing GitHub Actions job release Fix release workflow repository dispatch payload Jul 7, 2026
Copilot AI requested a review from gormaniac July 7, 2026 02:18
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.

2 participants