Skip to content

Commit c6b8416

Browse files
ci: Apply Feast repository and approval-label checks
Signed-off-by: agent-local-cloud <319593065+agent-local-cloud@users.noreply.github.com>
1 parent 53defbc commit c6b8416

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎.github/workflows/localcloud.yml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22
# Laptop: python3 scripts/localcloud-test.py (add --full-suite for regression tests).
33
name: pr-local-cloud-integration-tests
44
'on':
5-
workflow_dispatch: null
6-
pull_request: null
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- labeled
711
permissions:
812
contents: read
913
jobs:
1014
localcloud:
15+
# Match Feast's approval-label policy and never run this job in fork repositories.
16+
if:
17+
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) ||
18+
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) &&
19+
github.repository == 'feast-dev/feast'
1120
runs-on: ubuntu-latest
1221
timeout-minutes: 30
1322
services:

0 commit comments

Comments
 (0)