Skip to content

Commit

Permalink
Merge pull request #50 from jflo/gha_permmissioned
Browse files Browse the repository at this point in the history
align archive versions with docker images, if release version specified
  • Loading branch information
jflo authored Jan 31, 2024
2 parents d951caa + f64398f commit c4a3e7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-checklist-on-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: "add checklist as a comment on newly opened PRs"
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/github-script@v7.0.1
with:
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ task autocomplete(type: JavaExec) {
}
}

def archiveBuildVersion = project.hasProperty('release.releaseVersion') ? project.property('release.releaseVersion') : "${rootProject.version}"

installDist { dependsOn checkLicense, untunedStartScripts, evmToolStartScripts }

distTar {
Expand All @@ -655,6 +657,7 @@ distTar {
delete fileTree(dir: 'build/distributions', include: '*.tar.gz')
}
compression = Compression.GZIP
setVersion(archiveBuildVersion)
archiveExtension = 'tar.gz'
}

Expand All @@ -663,6 +666,7 @@ distZip {
doFirst {
delete fileTree(dir: 'build/distributions', include: '*.zip')
}
setVersion(archiveBuildVersion)
}

publishing {
Expand Down

0 comments on commit c4a3e7c

Please sign in to comment.