Skip to content

Commit ad474b9

Browse files
authored
Change downstream CI and HPC to specific branches
Test downstream-ci
1 parent 4679e17 commit ad474b9

File tree

1 file changed

+2
-39
lines changed

1 file changed

+2
-39
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -28,64 +28,27 @@ jobs:
2828
downstream-ci:
2929
name: downstream-ci
3030
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
31-
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci.yml@main
31+
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci.yml@re-add-ek-regrid-as-dep-of-ekp
3232
with:
3333
eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
3434
codecov_upload: true
3535
secrets: inherit
3636

37-
# Run CI of private downstream packages on self-hosted runners
38-
private-downstream-ci:
39-
name: private-downstream-ci
40-
needs: [downstream-ci]
41-
if: ${{ (success() || failure()) && (!github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }}
42-
runs-on: ubuntu-latest
43-
permissions:
44-
pull-requests: write
45-
steps:
46-
- name: Dispatch private downstream CI
47-
uses: ecmwf/dispatch-private-downstream-ci@v1
48-
with:
49-
token: ${{ secrets.GH_REPO_READ_TOKEN }}
50-
owner: ecmwf
51-
repository: private-downstream-ci
52-
event_type: downstream-ci
53-
payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}"}'
5437

5538
# Build downstream packages on HPC
5639
downstream-ci-hpc:
5740
name: downstream-ci-hpc
5841
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
59-
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
42+
uses: ecmwf/downstream-ci/.github/workflows/downstream-ci-hpc.yml@re-add-ek-regrid-as-dep-of-ekp
6043
with:
6144
eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
6245
secrets: inherit
6346

64-
# Run CI of private downstream packages on HPC
65-
private-downstream-ci-hpc:
66-
name: private-downstream-ci-hpc
67-
needs: [downstream-ci-hpc]
68-
if: ${{ (success() || failure()) && (!github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }}
69-
runs-on: ubuntu-latest
70-
permissions:
71-
pull-requests: write
72-
steps:
73-
- name: Dispatch private downstream CI
74-
uses: ecmwf/dispatch-private-downstream-ci@v1
75-
with:
76-
token: ${{ secrets.GH_REPO_READ_TOKEN }}
77-
owner: ecmwf
78-
repository: private-downstream-ci
79-
event_type: downstream-ci-hpc
80-
payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}","skip_matrix_jobs": "nvidia-22.11"}'
81-
8247
notify:
8348
runs-on: ubuntu-latest
8449
needs:
8550
- downstream-ci
86-
- private-downstream-ci
8751
- downstream-ci-hpc
88-
- private-downstream-ci-hpc
8952
if: ${{ always() && !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
9053
steps:
9154
- name: Trigger Teams notification

0 commit comments

Comments
 (0)