Update Last Commit File #183
This file contains 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: Last Commit Action | |
run-name: Update Last Commit File | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.cs' | |
- '**.csproj' | |
- '**.sln' | |
- '**.json' | |
- '**.resx' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo ${{ github.event.head_commit.timestamp}} > LastCommit.txt | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add . | |
git commit -m "Auto updating LastCommit.txt" | |
git push |