From b5b84d21fca2292885fe64cb94032633f3c4249f Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Tue, 21 Jan 2025 03:43:53 +0500 Subject: [PATCH] Update workflow file --- .gitea/workflows/build.yml | 4 +++- build.gradle | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b9bc188..bd49f7c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,6 +6,8 @@ on: jobs: build: + env: + RUN_NUMBER: ${{ gitea.run_number }} strategy: matrix: java: [ '21' ] @@ -49,7 +51,7 @@ jobs: name: create-air-fabric - name: Extract files - run: unzip create-air-fabric.zip + run: unzip create-air-fabric - name: Make release uses: akkuman/gitea-release-action@v1 diff --git a/build.gradle b/build.gradle index 97ad1ac..a1863de 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17 archivesBaseName = project.archives_base_name group = project.maven_group -String buildNumber = System.getenv("GITEA_RUN_NUMBER") +String buildNumber = System.getenv("RUN_NUMBER") version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "") repositories {