Skip to content

Commit ff12a98

Browse files
committed
ci: improve execution conditions
- Only run for forked repos under a `cbfacademy*` organisation
1 parent ab6718c commit ff12a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/classroom-autograding.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
jobs:
1515
autograding:
16-
if: ${{ !github.event.repository.is_template && github.event.sender.type != 'Bot' }}
16+
if: ${{ github.event.repository.fork && github.event.repository.owner.type == 'Organization' && startsWith(github.repository_owner, 'cbfacademy') && github.event.sender.type != 'Bot' }}
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout grading repo

0 commit comments

Comments
 (0)