Skip to content

Commit a925e2c

Browse files
committed
ci: route repo-guard through intranet runner
1 parent 9f51735 commit a925e2c

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎.github/workflows/repo-guard.yml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,23 @@ permissions:
1616

1717
jobs:
1818
guard:
19-
runs-on: ubuntu-latest
19+
if: >
20+
github.actor != 'dependabot[bot]' &&
21+
(
22+
(
23+
github.event_name == 'pull_request' &&
24+
github.event.pull_request.head.repo.full_name == github.repository
25+
) ||
26+
(
27+
github.event_name == 'issues' &&
28+
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association)
29+
) ||
30+
(
31+
github.event_name == 'issue_comment' &&
32+
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
33+
)
34+
)
35+
runs-on: [self-hosted, macOS, repo-guard-intranet]
2036
steps:
2137
- uses: ceilf6/repo-guard@main
2238
with:

0 commit comments

Comments
 (0)