Skip to content

Conversation

@jamie-lemon
Copy link
Collaborator

Changes made:
Added if: github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch' to both jobs. This condition:

  • Skips the job if the PR is a draft
  • Still allows the workflow to run when manually triggered via workflow_dispatch

The condition is necessary for both triggers because workflow_dispatch doesn't have a pull_request object, so we need the || github.event_name == 'workflow_dispatch' part to avoid errors if manually running the workflow.

Copy link
Collaborator

@julian-smith-artifex-com julian-smith-artifex-com left a comment

Choose a reason for hiding this comment

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

I'd prefer to leave this file unchanged.

A simpler solution would be to make a PR target a dummy thread, not main. In this case test_quick will not be run.

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.

4 participants