Skip to content

Commit 9cbecd7

Browse files
chore: Update GitHub workflows to exclude draft pull requests
1 parent a636e1b commit 9cbecd7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/danger.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pr-review:
1414
name: Danger JS
1515

16-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
16+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
1717

1818
runs-on: ubuntu-latest
1919

.github/workflows/tf-docs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
tf-docs:
1414
name: Generate Terraform Docs
1515
runs-on: ubuntu-latest
16+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
1617
permissions:
1718
contents: write
1819
pull-requests: write

.github/workflows/tf-sec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
tf-fmt-check:
1010
name: Tfsec PR Comment
1111

12-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
12+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
1313

1414
runs-on: ubuntu-latest
1515

0 commit comments

Comments
 (0)