新增启动时对本地仓库的检测

This commit is contained in:
snowy 2024-06-01 15:25:54 +08:00
parent 9b50b719d9
commit 62928e47eb

View File

@ -1,23 +0,0 @@
name: Record Commit Hash
on: [push]
jobs:
record-hash:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Record commit hash
run: |
echo $(git rev-parse HEAD) > liteyuki/resources/vanilla_resource/commit.txt
- name: Commit and push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add liteyuki/resources/vanilla_resource/commit.txt
git commit -m ":rocket: Record commit hash"
git push