Skip to content

Commit

Permalink
Create write-revision.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez authored Jun 19, 2024
1 parent c2232c5 commit 784d110
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/write-revision.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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

0 comments on commit 784d110

Please sign in to comment.