Skip to content

Commit c6fb4f5

Browse files
committed
Convert update-readme into a push workflow
1 parent f427681 commit c6fb4f5

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
name: Generate helm docs
22
run-name: Generate helm docs ${{ github.ref_name }} by @${{ github.actor }}"
33
on:
4-
workflow_dispatch:
5-
pull_request:
4+
push:
5+
branches:
6+
- main
67
paths:
78
- charts/s3proxy/**
89
- README.md.gotmpl
910
- README.md
1011

12+
permissions:
13+
contents: write
14+
1115
jobs:
1216
update-readme:
1317
runs-on: ubuntu-latest
1418
timeout-minutes: 5
1519
steps:
16-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
1721

18-
- name: Render helm docs inside the README.md and push changes back to PR branch
19-
uses: losisin/helm-docs-github-action@v1
20-
with:
21-
git-push: true
22-
git-push-user-name: "CometActions"
23-
git-push-user-email: "[email protected]"
24-
git-commit-message: "Update Helm documentation"
22+
- name: Render helm docs inside the README.md and push changes back to PR branch
23+
uses: losisin/helm-docs-github-action@v1
24+
with:
25+
git-push: true
26+
git-push-user-name: "CometActions"
27+
git-push-user-email: "[email protected]"
28+
git-commit-message: "Update Helm documentation"

0 commit comments

Comments
 (0)