Skip to content

Commit

Permalink
ci.yml: Update to infra v2 (#90)
Browse files Browse the repository at this point in the history
* ci.yml: Update to infra v2

* Update workflow references to v2
  • Loading branch information
CodeGat authored Dec 10, 2024
1 parent 47bc7bf commit 295098e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
cd:
name: CD
uses: access-nri/build-cd/.github/workflows/cd.yml@main
uses: access-nri/build-cd/.github/workflows/cd.yml@v2
with:
model: ${{ vars.NAME }}
permissions:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,23 @@ on:
jobs:
pr-ci:
name: CI
if: github.event_name == 'pull_request' && github.event.action != 'closed'
uses: access-nri/build-cd/.github/workflows/ci.yml@main
if: >-
(github.event_name == 'pull_request' && github.event.action != 'closed') ||
(github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy'))
uses: access-nri/build-cd/.github/workflows/ci.yml@v2
with:
model: ${{ vars.NAME }}
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
permissions:
pull-requests: write
contents: write
statuses: write
secrets: inherit

pr-comment:
name: Comment
if: github.event_name == 'issue_comment'
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@main
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v2
with:
model: ${{ vars.NAME }}
permissions:
Expand All @@ -41,7 +45,7 @@ jobs:
pr-closed:
name: Closed
if: github.event_name == 'pull_request' && github.event.action == 'closed'
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@main
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v2
with:
model: ${{ vars.NAME }}
secrets: inherit

0 comments on commit 295098e

Please sign in to comment.