Skip to content

Commit 874ba00

Browse files
committed
try ready baked solution
1 parent 2e75779 commit 874ba00

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/table_of_contents.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,8 @@ jobs:
6767
fi
6868
6969
# 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/*'

0 commit comments

Comments
 (0)