From def60bf2988b0ba47b5672393d9a479b697c7b6c Mon Sep 17 00:00:00 2001 From: snowy Date: Sat, 1 Jun 2024 15:01:14 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=AF=B9lyfunction=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=B7=BB=E5=8A=A0=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/add_commit_info.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/add_commit_info.yml diff --git a/.github/workflows/add_commit_info.yml b/.github/workflows/add_commit_info.yml new file mode 100644 index 0000000..4d96cd6 --- /dev/null +++ b/.github/workflows/add_commit_info.yml @@ -0,0 +1,21 @@ +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: Upload commit hash + uses: actions/upload-artifact@v2 + with: + name: commit-hash + path: liteyuki/resources/vanilla_resource/commit.txt \ No newline at end of file