Skip to content

Commit

Permalink
Update infra version, add secrets.inherit to ci-comment job (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat authored Dec 12, 2024
1 parent 31b0fae commit 8143e78
Show file tree
Hide file tree
Showing 2 changed files with 6 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@v2
uses: access-nri/build-cd/.github/workflows/cd.yml@v3
with:
model: ${{ vars.NAME }}
permissions:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- closed
branches:
- main
- dev
- backport/*.*
paths:
- config/**
Expand All @@ -24,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@v2
uses: access-nri/build-cd/.github/workflows/ci.yml@v3
with:
model: ${{ vars.NAME }}
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }}
Expand All @@ -39,20 +40,20 @@ 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@v2
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3
with:
model: ${{ vars.NAME }}
permissions:
pull-requests: write
contents: write

secrets: inherit

pr-closed:
name: Closed
# 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@v2
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v3
with:
model: ${{ vars.NAME }}
secrets: inherit # inherit GitHub Deployment environment secrets

0 comments on commit 8143e78

Please sign in to comment.