Skip to content

Commit

Permalink
Try doing away with redundant env var declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jan 24, 2025
1 parent 53fcc9d commit a47f10a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ jobs:
git status
if [ -n "$(git status --porcelain)" ]; then exit 1; fi
- name: Build release files
env:
MEGA_VERSION: ${{ github.event.release.tag_name }}
run: ./gradlew build
- name: Publish release files
if: ${{ github.event_name == 'release' }}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
val modId = "megacells"

base.archivesName = modId
version = System.getenv("MEGA_VERSION") ?: "0.0.0"
version = if (System.getenv("GITHUB_REF_TYPE") == "tag") System.getenv("GITHUB_REF_NAME") else "0.0.0"
group = "gripe.90"

java.toolchain.languageVersion = JavaLanguageVersion.of(21)
Expand Down

0 comments on commit a47f10a

Please sign in to comment.