Skip to content

Commit

Permalink
fixup! execute acctest only if pull request is not draft
Browse files Browse the repository at this point in the history
Signed-off-by: ocobleseqx <[email protected]>
  • Loading branch information
ocobleseqx committed Oct 18, 2023
1 parent ca4bf34 commit 26bd92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/acctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ name: Acceptance Tests

on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- 'LICENSE'
- '**.md'
Expand All @@ -27,7 +28,7 @@ permissions:

jobs:
authorize:
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.draft == false }}
if: (github.event_name == 'workflow_dispatch') || (github.event_name == 'pull_request_target' && !github.event.pull_request.draft)
environment:
${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
Expand Down

0 comments on commit 26bd92c

Please sign in to comment.