Skip to content

Commit 52eec61

Browse files
authored
Create helm PR using a github app (#604)
1 parent 24616d3 commit 52eec61

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/helm-chart.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ jobs:
1616
contents: write
1717
pull-requests: write
1818
steps:
19+
- name: Generate token
20+
id: generate_token
21+
uses: actions/create-github-app-token@v1
22+
with:
23+
app-id: ${{ vars.CI_SIGNED_COMMIT_APP_ID }}
24+
private-key: ${{ secrets.CI_SIGNED_COMMIT_APP_PRIVATE_KEY }}
25+
1926
- uses: actions/checkout@v4
2027
with:
28+
token: ${{ steps.generate_token.outputs.token }}
2129
fetch-depth: 0
2230

2331
- name: Set up Helm
@@ -65,21 +73,11 @@ jobs:
6573
run: |
6674
rm -rf package
6775
68-
- uses: crazy-max/ghaction-import-gpg@v5
69-
with:
70-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
71-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
72-
git_user_signingkey: true
73-
git_commit_gpgsign: true
74-
7576
- name: Create Pull Request
7677
uses: peter-evans/create-pull-request@v6
7778
with:
78-
token: ${{ secrets.COMMITTER_TOKEN }}
79-
committer: Jon Jagger <[email protected]>
79+
token: ${{ steps.generate_token.outputs.token }}
8080
commit-message: 'Update helm docs'
81-
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
82-
signoff: false
8381
delete-branch: true
8482
title: 'Update helm docs'
8583
body: |

charts/k8s-reporter/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ helm uninstall kosli-reporter
110110

111111
----------------------------------------------
112112
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
113+

0 commit comments

Comments
 (0)