From c5731c746d9a03e918e93cbb58998594eda02553 Mon Sep 17 00:00:00 2001 From: Elliott Baron Date: Fri, 8 Dec 2023 11:19:42 -0500 Subject: [PATCH] ci(release): call submodule update from release workflow (#105) (cherry picked from commit ed50629e4b0e7597b7377e24e1c2f6571d116cae) --- .github/workflows/helm-release.yml | 9 +++++++++ .github/workflows/submodule.yml | 11 ++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 49237036..e1f5bbb6 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -46,3 +46,12 @@ jobs: version: v1.5.0 charts_dir: charts config: .github/helm-release-config.yml + + update-helm-repo: + uses: ./.github/workflows/submodule.yml + needs: helm-release + if: github.repository_owner == 'cryostatio' + secrets: + SUBMODULE_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/submodule.yml b/.github/workflows/submodule.yml index 9e9fba71..64a45dbd 100644 --- a/.github/workflows/submodule.yml +++ b/.github/workflows/submodule.yml @@ -1,9 +1,14 @@ name: submodule on: - push: - branches: - - gh-pages + workflow_call: + secrets: + SUBMODULE_TOKEN: + required: true + GPG_PRIVATE_KEY: + required: true + GPG_PASSPHRASE: + required: true defaults: run: