Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add a check to skip comment when manually triggering workflow on a branch #4357

Open
wants to merge 5 commits into
base: next
Choose a base branch
from

Conversation

swapnilmmane
Copy link
Contributor

Changes

During manual (workflow_dispatch) runs on a branch, there was no pull request,
but the comment step looked for a pull request number.
This change skips the comment step for manual triggers when no PR is available.

How Has This Been Tested?

Manually Tested

Developers can trigger this workflow by commenting /storybook on pull requests
or by manually running it for a specific branch via the GitHub Actions tab.
… a branch

During manual (workflow_dispatch) runs on a branch, there was no pull request,
but the comment step looked for a pull request number.
This change skips the comment step for manual triggers when no PR is available.
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.

1 participant