Skip to content

Commit

Permalink
index
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkatIT committed Nov 9, 2023
1 parent df8da1b commit 050b4c3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/update-toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
shell: cmd

- name: Commit changes
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add README.md
git commit -m "Update TOC"
git remote add origin_with_token "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git"
git push origin_with_token $GITHUB_REF
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
uses: actions/github-script@v7
with:
script: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add README.md
git commit -m "Update TOC"
git push

0 comments on commit 050b4c3

Please sign in to comment.