Skip to content

Commit 5673cc7

Browse files
authored
Don't run approved workflow on non generated PRs (#862)
1 parent aac7a62 commit 5673cc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/approved_status.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
if: >
1717
github.event.pull_request.draft == false &&
1818
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
19-
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')
19+
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
20+
contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
2021
steps:
2122
- name: Get GitHub App token
2223
id: get_token

0 commit comments

Comments
 (0)