Skip to content

Commit

Permalink
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 ca31c98 commit ca4bf34
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/acctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ name: Acceptance Tests
# (which means it was made by us and can run immediately). Once a PR
# is approved, the PR code gains access to secrets referenced in this
# workflow.
# Any changes to this job, even from internal contributors, require
# heavy scrutiny.

# The 'build' job and subsequent jobs, are executed only when the pull
# request is not a draft, regardless of whether it is from an internal
# branch or external fork.

# Any changes to this job, even from internal contributors, require heavy scrutiny.

on:
pull_request_target:
Expand All @@ -23,6 +27,7 @@ permissions:

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

0 comments on commit ca4bf34

Please sign in to comment.