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: