Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to infrastructure v2 #28

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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