Skip to content

Commit

Permalink
Updated infra to v4 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat authored Feb 4, 2025
1 parent 59f0e75 commit b300a6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:
jobs:
cd:
name: CD
uses: access-nri/build-cd/.github/workflows/cd.yml@v3
uses: access-nri/build-cd/.github/workflows/cd.yml@v4
with:
model: ${{ vars.NAME }}
permissions:
contents: write
# Required because later workflows also handle on.pull_request trigger
pull-requests: write
secrets: inherit
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
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@v3
uses: access-nri/build-cd/.github/workflows/ci.yml@v4
with:
model: ${{ vars.NAME }}
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
Expand All @@ -40,7 +40,7 @@ jobs:
# 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@v3
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v4
with:
model: ${{ vars.NAME }}
permissions:
Expand All @@ -53,7 +53,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@v3
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v4
with:
model: ${{ vars.NAME }}
root-sbd: ${{ vars.NAME }}
secrets: inherit # inherit GitHub Deployment environment secrets

0 comments on commit b300a6c

Please # to comment.