debugging (again) update helm-charts repo github workflow
This commit is contained in:
parent
5cf479dcdb
commit
acf643f43b
1 changed files with 14 additions and 12 deletions
26
.github/workflows/on-helm-release-pr-merged.yml
vendored
26
.github/workflows/on-helm-release-pr-merged.yml
vendored
|
|
@ -8,10 +8,11 @@ on:
|
|||
- helm/oncall/Chart.yaml
|
||||
|
||||
jobs:
|
||||
get-irm-app-token:
|
||||
get-irm-app-secrets:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
token: ${{ steps.generate-token.outputs.token }}
|
||||
github_app_id: ${{ steps.secret-outputs.outputs.github_app_id }}
|
||||
github_app_pem: ${{ steps.secret-outputs.outputs.github_app_pem }}
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
|
@ -24,22 +25,23 @@ jobs:
|
|||
GH_APP_ID=github-app:app-id
|
||||
GH_APP_PRIVATE_KEY=github-app:private-key
|
||||
|
||||
- name: Generate Github App token
|
||||
id: generate-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ env.GH_APP_ID }}
|
||||
private-key: ${{ env.GH_APP_PRIVATE_KEY }}
|
||||
owner: grafana
|
||||
repositories: "helm-charts"
|
||||
# NOTE: there's no need to call actions/create-github-app-token, this is done
|
||||
# inside grafana/helm-charts/.github/workflows/update-helm-repo.yaml
|
||||
# we just simply need to pass github_app_id and github_app_pem as inputs to that workflow
|
||||
- name: Output env var secrets
|
||||
id: secret-outputs
|
||||
run: |
|
||||
echo "github_app_id=$GH_APP_ID" >> $GITHUB_OUTPUT
|
||||
echo "github_app_pem=$GH_APP_PRIVATE_KEY" >> $GITHUB_OUTPUT
|
||||
|
||||
call-update-helm-repo:
|
||||
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@main
|
||||
needs:
|
||||
- get-irm-app-token
|
||||
- get-irm-app-secrets
|
||||
with:
|
||||
charts_dir: helm
|
||||
cr_configfile: helm/cr.yaml
|
||||
ct_configfile: helm/ct.yaml
|
||||
secrets:
|
||||
helm_repo_token: ${{ needs.get-irm-app-token.outputs.token }}
|
||||
github_app_id: ${{ needs.get-irm-app-secrets.outputs.github_app_id }}
|
||||
github_app_pem: ${{ needs.get-irm-app-secrets.outputs.github_app_pem }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue