Skip to content

Commit

Permalink
Update to infrastructure v2 (#28)
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 67eaf55 commit 31b0fae
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 @@ -21,21 +21,25 @@ jobs:
name: CI
# This job is responsible for checks and prerelease deployments
# that happen when a PR is modified or opened
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 # inherit GitHub Deployment Environment secrets

pr-comment:
name: Comment
# This job is responsible for handling Command Comments like
# `!bump` during an open PR
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 @@ -48,7 +52,7 @@ jobs:
# This job is responsible for cleaning up the Prereleases after a
# PR is 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 # inherit GitHub Deployment environment secrets

0 comments on commit 31b0fae

Please sign in to comment.