Skip to content

Conversation

@rockbmb
Copy link
Collaborator

@rockbmb rockbmb commented Oct 15, 2025

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

The GitHub workflow has a logical flaw in its triggers. It's configured to run on pull requests, but it relies on an input that is only available during manual workflow_dispatch triggers, which will cause it to fail when run automatically on a pull request. Additionally, the branch name for the pull request trigger may be outdated.

required: true
type: string
pull_request:
branches: [ master ]
Copy link
Contributor

Choose a reason for hiding this comment

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

The pull request trigger is configured for the master branch. This should be changed to main if that is the repository's default branch.

Comment on lines +12 to +32
pull_request:
branches: [ master ]

jobs:
run-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable

- name: Run test
run: yarn test ${{ github.event.inputs.test_name }}
Copy link
Contributor

Choose a reason for hiding this comment

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

The workflow is set up to be triggered by pull_request, but the run test step on line 32 depends on github.event.inputs.test_name, which is only populated during a workflow_dispatch event. When triggered by a pull request, this input will be empty, causing the test command to fail or run incorrectly. The pull_request trigger should be removed, as this workflow is designed to be run manually.

@rockbmb rockbmb closed this Oct 15, 2025
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