Skip to content

Commit 1ecbf48

Browse files
daquinteroflexyaugenst-flex
authored andcommitted
ci: Skip pr-requirements-pass without approval
1 parent dca8f69 commit 1ecbf48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/run_tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,11 @@ jobs:
326326

327327
pr-requirements-pass:
328328
name: pr-requirements-pass
329-
if: always() && ( needs.determine-test-scope.outputs.local_tests == 'true' ) || ( needs.determine-test-scope.outputs.remote_tests == 'true' ) # always will run if dependent job is skipped
329+
if: |
330+
always() &&
331+
( needs.determine-test-scope.outputs.pr_approval_state == 'true' ) &&
332+
( needs.determine-test-scope.outputs.local_tests == 'true' ) ||
333+
( needs.determine-test-scope.outputs.remote_tests == 'true' )
330334
needs: [local-tests, remote-tests, lint]
331335
runs-on: ubuntu-latest
332336
steps:

0 commit comments

Comments
 (0)