Skip to content

Commit

Permalink
Update infra version, add secrets.inherit to ci-comment job (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat authored Dec 12, 2024
1 parent ab15f45 commit 5b8090d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- closed
branches:
- main
- dev
- backport/*.*
paths:
- config/**
Expand All @@ -21,9 +22,8 @@ jobs:
pr-ci:
name: CI
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
(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
with:
model: ${{ vars.NAME }}
# root-sbd: if different from vars.NAME
Expand All @@ -33,23 +33,23 @@ jobs:
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@109-bump-major-comment-fix
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3
with:
model: ${{ vars.NAME }}
# root-sbd: if different from vars.NAME
permissions:
pull-requests: write
contents: write
secrets: inherit

pr-closed:
name: 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
ci-comment:
secrets: inherit

0 comments on commit 5b8090d

Please sign in to comment.