Commit d7eaeac 1 parent 7a5c49f commit d7eaeac Copy full SHA for d7eaeac
File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
cd :
12
12
name : CD
13
- uses : access-nri/build-cd/.github/workflows/cd.yml@main
13
+ uses : access-nri/build-cd/.github/workflows/cd.yml@v2
14
14
with :
15
15
model : ${{ vars.NAME }}
16
16
root-sbd : access-esm1p5
Original file line number Diff line number Diff line change 19
19
jobs :
20
20
pr-ci :
21
21
name : CI
22
- if : github.event_name == 'pull_request' && github.event.action != 'closed'
23
- uses : access-nri/build-cd/.github/workflows/ci.yml@main
22
+ if : >-
23
+ (github.event_name == 'pull_request' && github.event.action != 'closed') ||
24
+ (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy'))
25
+ uses : access-nri/build-cd/.github/workflows/ci.yml@v2
24
26
with :
25
27
model : ${{ vars.NAME }}
26
28
root-sbd : access-esm1p5
29
+ pr : ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
27
30
permissions :
28
31
pull-requests : write
29
32
contents : write
33
+ statuses : write
30
34
secrets : inherit
31
35
32
36
pr-comment :
33
37
name : Comment
34
38
if : github.event_name == 'issue_comment'
35
- uses : access-nri/build-cd/.github/workflows/ci-comment.yml@main
39
+ uses : access-nri/build-cd/.github/workflows/ci-comment.yml@v2
36
40
with :
37
41
model : ${{ vars.NAME }}
38
42
root-sbd : access-esm1p5
43
47
pr-closed :
44
48
name : Closed
45
49
if : github.event_name == 'pull_request' && github.event.action == 'closed'
46
- uses : access-nri/build-cd/.github/workflows/ci-closed.yml@main
50
+ uses : access-nri/build-cd/.github/workflows/ci-closed.yml@v2
47
51
with :
48
52
model : ${{ vars.NAME }}
49
53
secrets : inherit
You can’t perform that action at this time.
0 commit comments