File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 37
37
commit_author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
38
38
commit_options : ' --signoff'
39
39
commit_message : ' run error codes utility'
40
- file_pattern : helpers/ **.go
40
+ file_pattern : helpers/ **error .go
41
41
42
42
# to push changes to meshery docs
43
43
- name : Checkout meshery
@@ -49,18 +49,17 @@ jobs:
49
49
path : ' meshery'
50
50
ref : ' master'
51
51
52
- - name : Update and push docs
52
+ - name : Update docs
53
53
run : |
54
54
echo '{ "errors_export": "" }' | jq --slurpfile export ./helpers/errorutil_errors_export.json '.errors_export = $export[0]' > ./meshery/docs/_data/errorref/consul_errors_export.json
55
55
56
- cd ./meshery
57
- git config user.name l5io
58
- git config user.email [email protected]
59
- if git diff --exit-code --quiet
60
- then
61
- echo "No changes to commit"
62
- exit
63
- fi
64
- git add ./docs/_data/errorref/consul_errors_export.json
65
- git commit -m "[Docs] Error Code Reference: Updated codes for Consul adapter" --signoff
66
- git push origin master
56
+ - name : Commit changes
57
+ uses : stefanzweifel/git-auto-commit-action@v4
58
+ with :
59
+ repository : ./meshery
60
+ commit_user_name : l5io
61
+ commit_user_email :
[email protected]
62
+ commit_author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
63
+ commit_options : ' --signoff'
64
+ commit_message : ' [Docs] Error Code Reference: Meshery Adapter for Consul updated'
65
+ file_pattern : docs/
You can’t perform that action at this time.
0 commit comments