mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 05:17:24 +08:00
✨ 新增启动时对本地仓库的检测
This commit is contained in:
parent
9b50b719d9
commit
62928e47eb
23
.github/workflows/add_commit_info.yml
vendored
23
.github/workflows/add_commit_info.yml
vendored
@ -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
|
|
Loading…
Reference in New Issue
Block a user