From 4885bd1b56bab55ebe12d2928d013f4f3ddef074 Mon Sep 17 00:00:00 2001 From: Natsu Date: Mon, 1 Jul 2024 13:26:52 +0700 Subject: [PATCH] chore(build.yml): update build workflow - Change the name of the step from "Write Branch and Hash Info" to "Get Branch and Hash Info" - Remove the line that writes the branch and hash info to the version.txt file - Add a new step named "Pull Assets" to clone the Gakumas-Translation-Data-EN repository into app/src/main/assets/gakumas-local --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f778c86..5e9f674 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,13 +37,16 @@ jobs: sdkmanager --install "cmake;3.22.1" echo "cmake.dir=/usr/local/lib/android/sdk/cmake/3.22.1" > local.properties - - name: Write Branch and Hash Info + - name: Get Branch and Hash Info run: | branch=$(git rev-parse --abbrev-ref HEAD) hash=$(git rev-parse --short=7 HEAD) - echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt echo "VERSION=$branch.$hash" >> $GITHUB_ENV - + + - name: Pull Assets + run: | + git clone https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git app/src/main/assets/gakumas-local + - name: Grant Execute Permission for Gradlew run: chmod +x gradlew