Skip to content

Enable running the e2e tests manually#398

Merged
spaze merged 1 commit into
mainfrom
spaze/e2e-workflow_dispatch
Apr 20, 2026
Merged

Enable running the e2e tests manually#398
spaze merged 1 commit into
mainfrom
spaze/e2e-workflow_dispatch

Conversation

@spaze
Copy link
Copy Markdown
Owner

@spaze spaze commented Apr 20, 2026

Use github.ref_name as fallback for github.head_ref in e2e workflow: github.head_ref is only set on pull_request events; workflow_dispatch leaves it empty, whcih caused the composer require step to request an invalid "dev-" branch alias and fail.

@spaze spaze requested a review from Copilot April 20, 2026 00:55
@spaze spaze self-assigned this Apr 20, 2026
Copy link
Copy Markdown

Copilot AI left a comment

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 updates the e2e GitHub Actions workflow so it can be run via workflow_dispatch by falling back to github.ref_name when github.head_ref is empty, preventing an invalid composer require branch alias during manual runs.

Changes:

  • Use github.head_ref || github.ref_name when building the dev-<branch> alias for composer require in the e2e workflow.

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

Comment thread .github/workflows/e2e.yml
Comment thread .github/workflows/e2e.yml Outdated
@spaze spaze force-pushed the spaze/e2e-workflow_dispatch branch from 029e481 to 5f98b98 Compare April 20, 2026 00:58
`github.head_ref` is only set on `pull_request` events; `workflow_dispatch` leaves it empty, whcih caused the `composer require` step to request an invalid "dev-" branch alias and fail.
@spaze spaze force-pushed the spaze/e2e-workflow_dispatch branch from 5f98b98 to fdcda0a Compare April 20, 2026 01:23
@spaze spaze requested a review from Copilot April 20, 2026 01:24
Copy link
Copy Markdown

Copilot AI left a comment

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 updates the GitHub Actions E2E workflow so it can be run via workflow_dispatch (manual runs) without failing due to an empty github.head_ref, by falling back to github.ref_name and guarding against non-branch dispatch refs.

Changes:

  • Add a job-level HEAD_REF env var using ${{ github.head_ref || github.ref_name }}.
  • Fail early on workflow_dispatch when the selected ref is not a branch.
  • Use HEAD_REF in the “composer require” step (including the step name) to avoid producing an invalid dev- constraint.

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

@spaze spaze merged commit ac0f403 into main Apr 20, 2026
154 checks passed
@spaze spaze deleted the spaze/e2e-workflow_dispatch branch April 20, 2026 01:27
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