-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
branches:
- main
- backport/*.*
paths:
- config/**
- spack.yaml
issue_comment:
types:
- created
- edited
jobs:
pr-ci:
name: CI
if: github.event_name == 'pull_request' && github.event.action != 'closed'
uses: access-nri/build-cd/.github/workflows/ci.yml@main
with:
model: access-om2
permissions:
pull-requests: write
contents: write
secrets: inherit
pr-comment:
name: Comment
if: github.event_name == 'issue_comment'
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@main
with:
model: access-om2
permissions:
contents: write
pull-requests: write
pr-closed:
name: Closed
if: github.event_name == 'pull_request' && github.event.action == 'closed'
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@main
with:
model: access-om2
secrets: inherit