File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 45
45
if : github.event_name == 'push'
46
46
47
47
permissions :
48
- contents : read
48
+ contents : write
49
49
packages : write
50
50
51
51
steps :
@@ -105,11 +105,7 @@ jobs:
105
105
106
106
# in real apps the gitops config and spec would in be a separate repo
107
107
- name : Commit changes to gitops/
108
- env :
109
- GITHUB_TOKEN : ${{ secrets.PAT }} # PAT created with niraj8's account to allow push to main, not ideal but works for demos
110
- run : |
111
- git config user.name Niraj
112
- git config user.email niraj@appcd.com
113
- git add ./gitops
114
- git commit -m "chore: update gitops/ with updated k8s specs"
115
- git push
108
+ uses : stefanzweifel/git-auto-commit-action@v5
109
+ with :
110
+ file_pattern : ./gitops/
111
+ commit_message : " chore: update gitops"
You can’t perform that action at this time.
0 commit comments