Skip to content

Commit 6077433

Browse files
authored
Merge pull request #3 from ACCESS-NRI/infra-update-v3
CI Infrastructure Update to `v3`
2 parents 4bd9362 + c26afbe commit 6077433

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-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@v3
1414
with:
1515
model: ${{ vars.NAME }}
1616
permissions:

.github/workflows/ci.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- closed
1010
branches:
1111
- main
12+
- dev
1213
- backport/*.*
1314
paths:
1415
- config/**
@@ -20,31 +21,35 @@ on:
2021
jobs:
2122
pr-ci:
2223
name: CI
23-
if: github.event_name == 'pull_request' && github.event.action != 'closed'
24-
uses: access-nri/build-cd/.github/workflows/ci.yml@main
24+
if: >-
25+
(github.event_name == 'pull_request' && github.event.action != 'closed') ||
26+
(github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy'))
27+
uses: access-nri/build-cd/.github/workflows/ci.yml@v3
2528
with:
2629
model: ${{ vars.NAME }}
2730
# root-sbd: if different from vars.NAME
2831
permissions:
2932
pull-requests: write
3033
contents: write
34+
statuses: write
3135
secrets: inherit
3236

3337
pr-comment:
3438
name: Comment
3539
if: github.event_name == 'issue_comment'
36-
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@main
40+
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3
3741
with:
3842
model: ${{ vars.NAME }}
3943
# root-sbd: if different from vars.NAME
4044
permissions:
4145
pull-requests: write
4246
contents: write
47+
secrets: inherit
4348

4449
pr-closed:
4550
name: Closed
4651
if: github.event_name == 'pull_request' && github.event.action == 'closed'
47-
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@main
52+
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v3
4853
with:
4954
model: ${{ vars.NAME }}
5055
secrets: inherit

0 commit comments

Comments
 (0)