File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 67
67
fi
68
68
69
69
# Step 7 - Commit and Push generated Table Of Contents files
70
- - name : Commit and Push Changes
71
- if : steps.check_changes.outputs.has_changes == 'true'
72
- env :
73
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74
- run : |
75
- git config --global user.name "${{ github.actor }}"
76
- git config --global user.email "${{ github.actor }}@users.noreply.github.com"
77
- git add table-of-contents-files/*
78
- git commit -m "Autogenerate table of contents files from GitHub action - $(date '+%Y-%m-%d %H:%M:%S')"
79
- git push origin HEAD:update_table_of_contents
70
+ - uses : stefanzweifel/git-auto-commit-action@v5
71
+ with :
72
+ commit_message : " Autogenerate table of contents files from GitHub action - $(date '+%Y-%m-%d %H:%M:%S')"
73
+ branch : update_table_of_contents
74
+ file_pattern : ' table-of-contents-files/*'
You can’t perform that action at this time.
0 commit comments