From d907f3314a9956875baaaaf2b4d7b6be6fa81926 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Thu, 12 Dec 2024 15:36:47 +1100 Subject: [PATCH] Update infra version, add secrets.inherit to ci-comment job (#92) --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f1ec1fd..14e8c85 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c56a091..12659eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: - closed branches: - main + - dev - backport/*.* paths: - config/** @@ -22,7 +23,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 }} @@ -35,17 +36,18 @@ jobs: pr-comment: name: Comment 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 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