Skip to content

Commit d543a61

Browse files
authored
feat: make PR with changes to deal with branch protection rules (#1983)
fix: from new branch fix: syntax fix: syntax fix: pr permissions fix: pr details
1 parent 1918f80 commit d543a61

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

.github/workflows/publish-helm.yaml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111

1212
permissions:
1313
contents: write
14+
pull-requests: write
1415

1516
runs-on: ubuntu-latest
1617
steps:
@@ -63,7 +64,37 @@ jobs:
6364
git config --local user.email "github-actions[bot]@users.noreply.github.com"
6465
git config --local user.name "github-actions[bot]"
6566
git add -A
66-
git commit -m "update helm chart repository index.yaml"
67-
68-
git push origin gh-pages
67+
git commit -m "update helm chart repository index"
6968
fi
69+
70+
- name: Create Pull Request
71+
uses: peter-evans/create-pull-request@v7
72+
with:
73+
branch: feat/update-helm-repo-index-${{ github.sha }}
74+
base: gh-pages
75+
title: Update Helm Chart Repository Index
76+
body: |
77+
<!--
78+
Are you using Knative? If you do, we would love to know!
79+
https://github.com/knative/community/issues/new?template=ADOPTERS.yaml&title=%5BADOPTERS%5D%3A+%24%7BCOMPANY+NAME+HERE%7D
80+
-->
81+
82+
<!--
83+
Request Prow to automatically lint any go code in this PR:
84+
85+
/lint
86+
-->
87+
88+
## Proposed Changes
89+
90+
* Update Helm Chart Repository Index - generated by the publish-helm.yaml workflow
91+
92+
**Release Note**
93+
94+
<!-- Enter your extended release note in the below block. If the PR requires
95+
additional action from users switching to the new release, include the string
96+
"action required". If no release note is required, write "NONE". -->
97+
98+
```release-note
99+
NONE
100+
```

0 commit comments

Comments
 (0)