Skip to content

Commit d7eaeac

Browse files
authored
Update to infrastructure v2 (#20)
* ci.yml: Update to infra v2 * Update workflow references to v2
1 parent 7a5c49f commit d7eaeac

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
cd:
1212
name: CD
13-
uses: access-nri/build-cd/.github/workflows/cd.yml@main
13+
uses: access-nri/build-cd/.github/workflows/cd.yml@v2
1414
with:
1515
model: ${{ vars.NAME }}
1616
root-sbd: access-esm1p5

.github/workflows/ci.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,24 @@ on:
1919
jobs:
2020
pr-ci:
2121
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
2426
with:
2527
model: ${{ vars.NAME }}
2628
root-sbd: access-esm1p5
29+
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
2730
permissions:
2831
pull-requests: write
2932
contents: write
33+
statuses: write
3034
secrets: inherit
3135

3236
pr-comment:
3337
name: Comment
3438
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
3640
with:
3741
model: ${{ vars.NAME }}
3842
root-sbd: access-esm1p5
@@ -43,7 +47,7 @@ jobs:
4347
pr-closed:
4448
name: Closed
4549
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
4751
with:
4852
model: ${{ vars.NAME }}
4953
secrets: inherit

0 commit comments

Comments
 (0)