Skip to content

Commit

Permalink
try ready baked solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Blargian committed Jan 24, 2025
1 parent 2e75779 commit 874ba00
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/table_of_contents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@ jobs:
fi
# Step 7 - Commit and Push generated Table Of Contents files
- name: Commit and Push Changes
if: steps.check_changes.outputs.has_changes == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git add table-of-contents-files/*
git commit -m "Autogenerate table of contents files from GitHub action - $(date '+%Y-%m-%d %H:%M:%S')"
git push origin HEAD:update_table_of_contents
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Autogenerate table of contents files from GitHub action - $(date '+%Y-%m-%d %H:%M:%S')"
branch: update_table_of_contents
file_pattern: 'table-of-contents-files/*'

0 comments on commit 874ba00

Please sign in to comment.