Last active
January 8, 2025 15:35
Don't run GitHub Actions for pull requests that are drafts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@myobie
if
works, it skips on draft PR pushThanks for the gist man