File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
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 :
Original file line number Diff line number Diff line change 1- # Requires vars.NAME to be set as a variable.
21name : CI
32on :
43 pull_request :
2221jobs :
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
You can’t perform that action at this time.
0 commit comments