From 8ff999e865767a72fa8e9b79c034635adeb67449 Mon Sep 17 00:00:00 2001 From: Bob Pan Date: Tue, 3 Oct 2023 20:11:50 +0800 Subject: [PATCH] d --- .github/workflows/gradle.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c7f3fd7fe..c8a27d7de 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -23,6 +23,15 @@ jobs: java-version: '8' distribution: 'temurin' cache: 'gradle' + - name: env + run: env + - name: set version + env: + GITHUB_REF_NAME: ${{ vars.GITHUB_REF_NAME }} + run: | + env + sed -e 's/^\s*version\s+=.*/version="${GITHUB_REF_NAME}"/g' -i build.gradle + - name: Build dex-tools with Gradle run: ./gradlew check distZip