Update file #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Commit Message | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: write-all | |
| jobs: | |
| update-commit-msg: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "Dev-Docs" | |
| git config --global user.email "[email protected]" | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Update commit message | |
| run: | | |
| git log --format=%B -n 1 $GITHUB_SHA > commit-msg.txt | |
| git add commit-msg.txt | |
| git commit -m "Update commit message" -a | |
| git push |