Merge pull request #1538 from Sleet01/Fix_MML_1537_failure_to_save_or… #3
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: "Write MML Revision" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
# only write the revision for changes that affect program behavior | |
- '**.gradle' | |
- 'megameklab/src/**' | |
- 'megameklab/data/**' | |
jobs: | |
write_hashcode: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Write latest revision hashcode to file | |
run: echo ${{ github.sha }} > megameklab/docs/mml-revision.txt | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
git add megameklab/docs/mml-revision.txt | |
git commit -m 'Update mml-revision.txt' | |
git push |