Skip to content

Commit afb5934

Browse files
authored
Merge pull request #2 from ACCESS-NRI/infra-update-v5
Infra Update: New Release Provenance Database and Workflow Triggers
2 parents 3a48e31 + 99d0a25 commit afb5934

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
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@v5
1414
with:
1515
model: ${{ vars.NAME }}
1616
permissions:

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Requires vars.NAME to be set as a variable.
21
name: CI
32
on:
43
pull_request:
@@ -22,31 +21,34 @@ on:
2221
jobs:
2322
pr-ci:
2423
name: CI
25-
if: github.event_name == 'pull_request' && github.event.action != 'closed'
26-
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@v5
2728
with:
2829
model: ${{ vars.NAME }}
29-
# root-sbd: if different from vars.NAME
30+
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
3031
permissions:
3132
pull-requests: write
3233
contents: write
34+
statuses: write
3335
secrets: inherit
3436

3537
pr-comment:
3638
name: Comment
3739
if: github.event_name == 'issue_comment'
38-
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@main
40+
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v5
3941
with:
4042
model: ${{ vars.NAME }}
41-
# root-sbd: if different from vars.NAME
4243
permissions:
4344
pull-requests: write
4445
contents: write
46+
secrets: inherit
4547

4648
pr-closed:
4749
name: Closed
4850
if: github.event_name == 'pull_request' && github.event.action == 'closed'
49-
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@main
51+
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v5
5052
with:
51-
model: ${{ vars.NAME }}
53+
root-sbd: ${{ vars.NAME }}
5254
secrets: inherit

0 commit comments

Comments
 (0)