|
29 | 29 | eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
|
30 | 30 | secrets: inherit
|
31 | 31 |
|
32 |
| - # Run CI of private downstream packages on self-hosted runners |
33 |
| - private-downstream-ci: |
34 |
| - name: private-downstream-ci |
35 |
| - needs: [downstream-ci] |
36 |
| - if: (success() || failure()) && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
37 |
| - runs-on: ubuntu-latest |
38 |
| - permissions: |
39 |
| - pull-requests: write |
40 |
| - steps: |
41 |
| - - name: Dispatch private downstream CI |
42 |
| - uses: ecmwf-actions/dispatch-private-downstream-ci@v1 |
43 |
| - with: |
44 |
| - token: ${{ secrets.GH_REPO_READ_TOKEN }} |
45 |
| - owner: ecmwf-actions |
46 |
| - repository: private-downstream-ci |
47 |
| - event_type: downstream-ci |
48 |
| - payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}"}' |
49 |
| - |
50 |
| - # Build downstream packages on HPC |
51 |
| - downstream-ci-hpc: |
52 |
| - name: downstream-ci-hpc |
53 |
| - if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
54 |
| - uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main |
55 |
| - with: |
56 |
| - eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }} |
57 |
| - secrets: inherit |
58 |
| - |
59 |
| - # Run CI of private downstream packages on HPC |
60 |
| - private-downstream-ci-hpc: |
61 |
| - name: private-downstream-ci-hpc |
62 |
| - needs: [downstream-ci-hpc] |
63 |
| - if: (success() || failure()) && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
64 |
| - runs-on: ubuntu-latest |
65 |
| - permissions: |
66 |
| - pull-requests: write |
67 |
| - steps: |
68 |
| - - name: Dispatch private downstream CI |
69 |
| - uses: ecmwf-actions/dispatch-private-downstream-ci@v1 |
70 |
| - with: |
71 |
| - token: ${{ secrets.GH_REPO_READ_TOKEN }} |
72 |
| - owner: ecmwf-actions |
73 |
| - repository: private-downstream-ci |
74 |
| - event_type: downstream-ci-hpc |
75 |
| - payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}"}' |
76 |
| - |
77 |
| - codecov: |
78 |
| - name: code-coverage |
79 |
| - if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
80 |
| - uses: ./.github/workflows/reusable-ci.yml |
81 |
| - with: |
82 |
| - eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }} |
83 |
| - codecov: true |
84 |
| - secrets: inherit |
85 |
| - |
86 |
| - notify: |
87 |
| - runs-on: ubuntu-latest |
88 |
| - needs: |
89 |
| - - downstream-ci |
90 |
| - - private-downstream-ci |
91 |
| - - downstream-ci-hpc |
92 |
| - - private-downstream-ci-hpc |
93 |
| - - codecov |
94 |
| - if: always() && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
95 |
| - steps: |
96 |
| - - name: Trigger Teams notification |
97 |
| - uses: ecmwf-actions/notify-teams@v1 |
98 |
| - with: |
99 |
| - incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }} |
100 |
| - needs_context: ${{ toJSON(needs) }} |
0 commit comments