Skip to content

Skip benchmark history action in forks#1923

Merged
spawnia merged 1 commit into
webonyx:masterfrom
simPod:simpod/benchmark-action-fork-guard
Jun 7, 2026
Merged

Skip benchmark history action in forks#1923
spawnia merged 1 commit into
webonyx:masterfrom
simPod:simpod/benchmark-action-fork-guard

Conversation

@simPod

@simPod simPod commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Skips the benchmark history/comment action when workflows run outside webonyx/graphql-php, where the benchmark-results branch may not exist. The PHPBench run itself still executes.

Failure example https://github.com/simPod/graphql-php/actions/runs/27083416968/job/79933283961

@simPod simPod requested a review from spawnia June 7, 2026 05:40
@simPod simPod marked this pull request as ready for review June 7, 2026 05:46
@simPod simPod requested a review from Copilot June 7, 2026 05:46

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

Adjusts the benchmarks GitHub Actions workflow to avoid running the benchmark history/comment publishing step in non-upstream repositories (forks), where the benchmark-results branch may not exist, while keeping the PHPBench execution intact.

Changes:

  • Adds a repository guard (if: github.repository == 'webonyx/graphql-php') to the github-action-benchmark step in the PR benchmarks job.

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

Comment on lines 38 to 40
- uses: benchmark-action/github-action-benchmark@v1
if: github.repository == 'webonyx/graphql-php'
with:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed by adding the same repository guard to the benchmark-history github-action-benchmark step. PHPBench still runs; only history publishing is skipped outside webonyx/graphql-php.

@simPod simPod force-pushed the simpod/benchmark-action-fork-guard branch from 5434082 to add6315 Compare June 7, 2026 06:16
@simPod simPod requested a review from Copilot June 7, 2026 06:23

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@spawnia spawnia merged commit 507904d into webonyx:master Jun 7, 2026
22 checks passed
@simPod simPod deleted the simpod/benchmark-action-fork-guard branch June 7, 2026 06: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.

3 participants