Skip to content

Commit

Permalink
Update "Build PRs" workflow (#28)
Browse files Browse the repository at this point in the history
* Update "Build PRs" workflow

* Don't run jmh on build-prs.yml
  • Loading branch information
Technici4n committed Oct 30, 2023
1 parent 98a62a3 commit 147d932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 1000
fetch-tags: true

Expand All @@ -27,4 +29,4 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build :bus-jmh:jmh
arguments: build
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ ext.sharedManifest = manifest {
'Specification-Vendor': 'NeoForged',
'Specification-Version': '1', // Currently version 1 of the eventbus specification
'Implementation-Title': project.name,
'Implementation-Version': "${project.version}+${System.getenv("BUILD_NUMBER")?:0}+${gradleutils.gitInfo.branch}.${gradleutils.gitInfo.abbreviatedId}",
'Implementation-Version': "${project.version}+${gradleutils.gitInfo.branch}.${gradleutils.gitInfo.abbreviatedId}",
'Implementation-Vendor' :'NeoForged',
'Implementation-Timestamp': java.time.Instant.now().toString(),
'Git-Commit': gradleutils.gitInfo.abbreviatedId,
'Git-Branch': gradleutils.gitInfo.branch,
'Build-Number': "${System.getenv('BUILD_NUMBER')?:0}"
] as LinkedHashMap, 'net/neoforged/bus/service/')
}

Expand Down Expand Up @@ -158,4 +157,4 @@ if (System.getenv('GPG_PRIVATE_KEY')) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
}
}

0 comments on commit 147d932

Please sign in to comment.