|
13 | 13 | if: |
14 | 14 | ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
15 | 15 | (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')))) && |
16 | | - github.repository == 'feast-dev/feast' |
| 16 | + github.event.pull_request.base.repo.full_name == 'feast-dev/feast' |
17 | 17 | runs-on: ubuntu-latest |
18 | 18 | steps: |
19 | 19 | - uses: actions/checkout@v4 |
|
30 | 30 | if: |
31 | 31 | ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
32 | 32 | (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')))) && |
33 | | - github.repository == 'feast-dev/feast' |
| 33 | + github.event.pull_request.base.repo.full_name == 'feast-dev/feast' |
34 | 34 | runs-on: ubuntu-latest |
35 | 35 | needs: lint-java |
36 | 36 | steps: |
|
70 | 70 | if: |
71 | 71 | ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
72 | 72 | (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')))) && |
73 | | - github.repository == 'feast-dev/feast' |
| 73 | + github.event.pull_request.base.repo.full_name == 'feast-dev/feast' |
74 | 74 | runs-on: ubuntu-latest |
75 | 75 | strategy: |
76 | 76 | matrix: |
@@ -105,18 +105,17 @@ jobs: |
105 | 105 | if: |
106 | 106 | ((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || |
107 | 107 | (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')))) && |
108 | | - github.repository == 'feast-dev/feast' |
| 108 | + github.event.pull_request.base.repo.full_name == 'feast-dev/feast' |
109 | 109 | runs-on: ubuntu-latest |
110 | 110 | needs: unit-test-java |
111 | 111 | env: |
112 | 112 | PYTHON: 3.11 |
113 | 113 | steps: |
114 | 114 | - uses: actions/checkout@v4 |
115 | 115 | with: |
116 | | - # pull_request runs the workflow in the context of the base repo |
117 | | - # as such actions/checkout needs to be explicit configured to retrieve |
118 | | - # code from the PR. |
119 | | - ref: refs/pull/${{ github.event.pull_request.number }}/merge |
| 116 | + repository: ${{ github.event.repository.full_name }} # Uses the full repository name |
| 117 | + ref: ${{ github.ref }} # Uses the ref from the event |
| 118 | + token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided token |
120 | 119 | submodules: recursive |
121 | 120 | - name: Set up JDK 11 |
122 | 121 | uses: actions/setup-java@v1 |
|
0 commit comments